https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8eb7a1a2f4a9cce5a70a9c...
commit 8eb7a1a2f4a9cce5a70a9c48efb30cdfa59bf56f Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Mon May 27 12:54:01 2019 +0200 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Mon May 27 13:22:40 2019 +0200
[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); ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- sdk/cmake/gcc.cmake | 1 + 1 file changed, 1 insertion(+)
diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake index 7716f545e4..f5c1ec10c6 100644 --- a/sdk/cmake/gcc.cmake +++ b/sdk/cmake/gcc.cmake @@ -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")