extend the Qt clang fix pertaining to shadowing of global variables to g++
This commit is contained in:
@@ -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*/
|
||||
|
||||
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user