Commit 91be1709 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

CMakeLists.txt: turn off -Wstrict-prototypes due to antlr

parent f576514a
...@@ -192,8 +192,10 @@ if(NOT MSVC) ...@@ -192,8 +192,10 @@ if(NOT MSVC)
endif() endif()
if(ENABLE_STRICT) if(ENABLE_STRICT)
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wno-error=unknown-pragmas" "-Wuninitialized" "-fno-strict-aliasing") list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wno-error=unknown-pragmas" "-Wuninitialized" "-fno-strict-aliasing")
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement" "-Wstrict-prototypes" "-Wno-error=strict-prototypes") list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement" "-Wstrict-prototypes")
endif() endif()
# this warning is generated by antlr so ignore it for now
list(APPEND STRICT_OPTIONS_C "-Wno-strict-prototypes")
endif() endif()
if(STRICT_OPTIONS_CPP) if(STRICT_OPTIONS_CPP)
list(REMOVE_DUPLICATES STRICT_OPTIONS_CPP) list(REMOVE_DUPLICATES STRICT_OPTIONS_CPP)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment