Skip to content

Commit cd0e912

Browse files
committed
Silence warning on GCC too
1 parent 5e1ecfc commit cd0e912

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,16 @@ else()
102102
-Wno-padded
103103
-Wno-reserved-id-macro
104104
-Wno-reserved-identifier
105-
-Wno-return-type # VRS fails this
106105
-Wno-unknown-warning-option # Otherwise older clang will complain about `-Wno-unsafe-buffer-usage`
107106
-Wno-unsafe-buffer-usage # Not sure why we need this, but we do.
108107
-Wno-unused-macros
109108
)
110109
endif()
111110

111+
target_compile_options(${TARGET_NAME} PRIVATE
112+
-Wno-return-type # VRS fails this
113+
)
114+
112115
# CMAKE_COMPILE_WARNING_AS_ERROR is only directly supported starting in CMake `3.24`
113116
# https://cmake.org/cmake/help/latest/prop_tgt/COMPILE_WARNING_AS_ERROR.html
114117
if(CMAKE_COMPILE_WARNING_AS_ERROR)

0 commit comments

Comments
 (0)