Suppress a syntax error identified by cppcheck 1.89 (#59)

Signed-off-by: Scott K Logan <logans@cottsay.net>
This commit is contained in:
Scott K Logan 2019-10-25 09:15:25 -07:00 committed by GitHub
parent 3817149010
commit bb8570f165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
// This should default-construct the fields of CddsWaitset
ws = static_cast<CddsWaitset *>(wait_set->data);
// cppcheck-suppress syntaxError
RMW_TRY_PLACEMENT_NEW(ws, ws, goto fail_placement_new, CddsWaitset, );
if (!ws) {
RMW_SET_ERROR_MSG("failed to construct wait set info struct");