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.

(cherry picked from commit 44dfad47e2768447950baa544ee1a464a723cd5f)
This commit is contained in:
Vadim Zeitlin 2022-12-25 01:23:54 +01:00
parent 5279c62df5
commit 9c1fa393b0

View File

@ -770,7 +770,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