[SDK] Disable the unknown-pragma for GCC

This commit is contained in:
Justin Miller 2024-10-19 12:25:16 -07:00 committed by Justin Miller
parent e09679f2d1
commit 50647e58e4

View file

@ -50,6 +50,7 @@ add_compile_options(-mlong-double-64)
add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:CXX>>:-nostdinc>")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
add_compile_options("-Wno-unknown-pragmas")
add_compile_options(-fno-aggressive-loop-optimizations)
if (DBG)
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Wold-style-declaration>")