Skip to content

Commit

Permalink
Add missing quotes in cxx flags used to mute warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Jun 6, 2024
1 parent c28e7eb commit 7d63df1
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions modules/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,88 +132,88 @@ configure_file(test/force-torque/configurationSettings.ini configurationSettings

if(USE_FLYCAPTURE)
# Add specific build flag to turn off warnings coming from PointGrey flycapture 3rd party
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unknown-pragmas)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-ignored-qualifiers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unknown-pragmas")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-ignored-qualifiers")
endif()

if(USE_PYLON)
# Add specific build flag to turn off warnings coming from Basler
# pylon headers
if(MSVC)
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4244)
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4267)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4244")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4267")
else()
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unknown-pragmas)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-overloaded-virtual)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-copy)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-variable)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unknown-pragmas")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-overloaded-virtual")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-copy")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-variable")
endif()
endif()

if(USE_REALSENSE)
# Add specific build flag to turn off warnings coming from RealSense 3rd party
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-strict-aliasing)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-pessimizing-move)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-strict-aliasing")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-pessimizing-move")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
endif()

if(USE_REALSENSE2)
if(UNIX)
# Add specific build flag to turn off warnings coming from PCL 3rd party
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-reorder)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-function)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-compare)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-overloaded-virtual)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-declarations)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-inconsistent-missing-override)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-conversion)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-float-equal)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-pessimizing-move)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-comment)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-ignored-qualifiers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-copy)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unqualified-std-cast-call)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-missing-field-initializers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-reorder")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-function")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-compare")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-overloaded-virtual")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-declarations")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-inconsistent-missing-override")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-conversion")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-float-equal")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-pessimizing-move")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-comment")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-ignored-qualifiers")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-copy")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unqualified-std-cast-call")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-missing-field-initializers")
else()
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4244)
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4267)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4244")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4267")
endif()
endif()

if(USE_LIBFREENECT)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
endif()

if(USE_UEYE)
if(UNIX)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-declarations)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-declarations")
else()
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4996)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4996")
endif()
endif()

if(USE_OPENCV)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-float-equal)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-float-equal")
endif()

if(USE_OCCIPITAL_STRUCTURE)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-reorder)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-function)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-compare)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-overloaded-virtual)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-ignored-qualifiers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-maybe-uninitialized)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-declarations)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-inconsistent-missing-override)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-conversion)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-float-equal)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-pessimizing-move)
endif()

vp_set_source_file_compile_flag(src/force-torque/vpForceTorqueAtiNetFTSensor.cpp -Wno-strict-aliasing)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-reorder")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-function")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-compare")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-overloaded-virtual")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-ignored-qualifiers")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-maybe-uninitialized")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-declarations")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-inconsistent-missing-override")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-conversion")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-float-equal")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-pessimizing-move")
endif()

vp_set_source_file_compile_flag(src/force-torque/vpForceTorqueAtiNetFTSensor.cpp "-Wno-strict-aliasing")

if(CXX_FLAGS_MUTE_WARNINGS)
# Add specific build flag to turn off warnings
Expand Down

0 comments on commit 7d63df1

Please sign in to comment.