extend the Qt clang fix pertaining to shadowing of global variables to g++

This commit is contained in:
nhmall
2021-02-03 09:22:57 -05:00
parent 7b454f8ba3
commit b1e5c99906
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,8 @@
#ifdef __clang__
#pragma clang diagnostic pop
#endif /* __clang__ */
#elif defined(__GNUC__) && defined(__cplusplus)
#pragma GCC diagnostic pop
#endif /* OS-specific bits */
/*qt_post.h*/

View File

@@ -22,6 +22,9 @@
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__) && defined(__cplusplus)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
/*qt_pre.h*/