summaryrefslogtreecommitdiff
path: root/examples/example.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example.cmake')
-rw-r--r--examples/example.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/example.cmake b/examples/example.cmake
index 6bb82a56d..3e395d53f 100644
--- a/examples/example.cmake
+++ b/examples/example.cmake
@@ -21,5 +21,11 @@ target_compile_options(${PROJECT} PUBLIC
-Wuninitialized
-Wunused
-Wredundant-decls
+ )
+
+# GCC version 9 or prior has a bug with incorrect Wconversion warnings
+if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)
+ target_compile_options(${PROJECT} PUBLIC
-Wconversion
)
+endif()