Make wxGCC_ONLY_WARNING_SUPPRESS really gcc-specific

This macro was still used with clang because it also predefines
__GNUC__, contradicting its name and purpose, as it was always identical
to just wxGCC_WARNING_SUPPRESS.

Only make it do something for gcc now and nothing for clang.
This commit is contained in:
Vadim Zeitlin 2022-12-25 01:23:54 +01:00
parent 58840fe7fd
commit 44dfad47e2

View file

@ -639,7 +639,7 @@ typedef short int WXTYPE;
/*
Similar macros but for gcc-specific warnings.
*/
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
# define wxGCC_ONLY_WARNING_SUPPRESS(x) wxGCC_WARNING_SUPPRESS(x)
# define wxGCC_ONLY_WARNING_RESTORE(x) wxGCC_WARNING_RESTORE(x)
#else