Use #pragma diagnostic for clang too, not just g++ 4.6+.
Clang seems to support this #pragma just fine and it's useful for disabling deprecation warnings in wxOSX code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b5c18cfec4
commit
626aadf02f
@ -658,13 +658,13 @@ typedef short int WXTYPE;
|
||||
inline bool wxIsSameDouble(double x, double y) { return x == y; }
|
||||
wxGCC_WARNING_RESTORE(float-equal)
|
||||
*/
|
||||
#if wxCHECK_GCC_VERSION(4, 6)
|
||||
#if defined(__clang__) || wxCHECK_GCC_VERSION(4, 6)
|
||||
# define wxGCC_WARNING_SUPPRESS(x) \
|
||||
_Pragma (wxSTRINGIZE(GCC diagnostic push)) \
|
||||
_Pragma (wxSTRINGIZE(GCC diagnostic ignored wxSTRINGIZE(wxCONCAT(-W,x))))
|
||||
# define wxGCC_WARNING_RESTORE(x) \
|
||||
_Pragma (wxSTRINGIZE(GCC diagnostic pop))
|
||||
#else /* gcc < 4.6 or not gcc at all */
|
||||
#else /* gcc < 4.6 or not gcc and not clang at all */
|
||||
# define wxGCC_WARNING_SUPPRESS(x)
|
||||
# define wxGCC_WARNING_RESTORE(x)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user