Skip to content

Commit 50647e5

Browse files
committed
[SDK] Disable the unknown-pragma for GCC
1 parent e09679f commit 50647e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/cmake/gcc.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ add_compile_options(-mlong-double-64)
5050
add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:CXX>>:-nostdinc>")
5151

5252
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
53+
add_compile_options("-Wno-unknown-pragmas")
5354
add_compile_options(-fno-aggressive-loop-optimizations)
5455
if (DBG)
5556
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Wold-style-declaration>")

0 commit comments

Comments
 (0)