[CMAKE] Disable unused-const-variable warning
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 10:54:01 +0000 (12:54 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 11:22:40 +0000 (13:22 +0200)
commit8eb7a1a2f4a9cce5a70a9c48efb30cdfa59bf56f
tree8a8c38ccdcdcc72bf1bd4f62ee14db9a90c51475
parent5fe74532afbd5be15591bac95b40d8d2c9621d32
[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