mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:23:06 +00:00
[SDK] Add GCC overrides for SAL annotations
GCC has some functions, variables & type attributes which can be used as aliases for some of the SAL annotations. Although it's not as rich & precise, it's still useful since we actually enable -Werror on GCC builds whereas we don't use such an option on MSVC builds. For now, _Must_inspect_result_ is aliased to warn_result_unused attribute.
This commit is contained in:
parent
a28a34f108
commit
d1f5c31820
6 changed files with 3004 additions and 2955 deletions
|
@ -102,6 +102,7 @@ add_compile_options(-Wno-char-subscripts -Wno-multichar -Wno-unused-value)
|
|||
add_compile_options(-Wno-unused-const-variable)
|
||||
add_compile_options(-Wno-unused-local-typedefs)
|
||||
add_compile_options(-Wno-deprecated)
|
||||
add_compile_options(-Wno-unused-result) # FIXME To be removed when CORE-17637 is resolved
|
||||
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-Wno-maybe-uninitialized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue