Suppress a syntax error identified by cppcheck 1.89 (#59)
Signed-off-by: Scott K Logan <logans@cottsay.net>
This commit is contained in:
parent
3817149010
commit
bb8570f165
1 changed files with 1 additions and 0 deletions
|
@ -1740,6 +1740,7 @@ extern "C" rmw_wait_set_t * rmw_create_wait_set(rmw_context_t * context, size_t
|
||||||
RET_ALLOC_X(wait_set->data, goto fail_alloc_wait_set_data);
|
RET_ALLOC_X(wait_set->data, goto fail_alloc_wait_set_data);
|
||||||
// This should default-construct the fields of CddsWaitset
|
// This should default-construct the fields of CddsWaitset
|
||||||
ws = static_cast<CddsWaitset *>(wait_set->data);
|
ws = static_cast<CddsWaitset *>(wait_set->data);
|
||||||
|
// cppcheck-suppress syntaxError
|
||||||
RMW_TRY_PLACEMENT_NEW(ws, ws, goto fail_placement_new, CddsWaitset, );
|
RMW_TRY_PLACEMENT_NEW(ws, ws, goto fail_placement_new, CddsWaitset, );
|
||||||
if (!ws) {
|
if (!ws) {
|
||||||
RMW_SET_ERROR_MSG("failed to construct wait set info struct");
|
RMW_SET_ERROR_MSG("failed to construct wait set info struct");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue