mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[CMAKE] Disable unused-const-variable warning
This prevents some errors like this one: In file included from ../dll/win32/wldap32/ber.c:27:0: ../sdk/include/reactos/wine/debug.h:378:48: error: '__wine_dbch___default' defined but not used [-Werror=unused-const-variable=] static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch ^ ../dll/win32/wldap32/ber.c:29:1: note: in expansion of macro 'WINE_DEFAULT_DEBUG_CHANNEL' WINE_DEFAULT_DEBUG_CHANNEL(wldap32); ^~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
5fe74532af
commit
8eb7a1a2f4
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ endif()
|
|||
|
||||
add_compile_flags("-Wall -Wpointer-arith")
|
||||
add_compile_flags("-Wno-char-subscripts -Wno-multichar -Wno-unused-value")
|
||||
add_compile_flags("-Wno-unused-const-variable")
|
||||
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_flags("-Wno-maybe-uninitialized")
|
||||
|
|
Loading…
Reference in a new issue