Skip to content

Commit ec35904

Browse files
committed
Wignored-qualifiers errors make looking for any other issues difficult - suppress them until we can figure out how not to trigger them.
1 parent 9bba7d5 commit ec35904

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cmake/SC_CXX_schema_macros.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ macro(SCHEMA_TARGETS expFile schemaName sourceFiles)
102102
target_compile_options("${PROJECT_NAME}" PRIVATE "/bigobj")
103103
endif()
104104
endif()
105+
# TODO - ideally we would avoid generating code that triggers this warning, but figuring out
106+
# how to do so is a non-trivial exercise. In the meantime, suppress the (very verbose) warnings
107+
# we get due to this issue so it doesn't mask other problems.
108+
if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
109+
target_compile_options("${PROJECT_NAME}" PRIVATE "-Wno-ignored-qualifiers")
110+
endif()
105111
endif()
106112
107113
if($CACHE{SC_BUILD_STATIC_LIBS})

0 commit comments

Comments
 (0)