diff --git a/rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp b/rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp
index 4c85a7748..f4c23c6ea 100644
--- a/rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp
+++ b/rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp
@@ -47,6 +47,7 @@ __rmw_create_wait_set(const char * identifier, rmw_context_t * context, size_t m
   wait_set->data = rmw_allocate(sizeof(CustomWaitsetInfo));
   // This should default-construct the fields of CustomWaitsetInfo
   wait_set_info = static_cast<CustomWaitsetInfo *>(wait_set->data);
+  // cppcheck-suppress syntaxError
   RMW_TRY_PLACEMENT_NEW(wait_set_info, wait_set_info, goto fail, CustomWaitsetInfo, )
   if (!wait_set_info) {
     RMW_SET_ERROR_MSG("failed to construct wait set info struct");