extend the Qt clang fix pertaining to shadowing of global variables to g++
This commit is contained in:
+3
-1
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif /* __clang__ */
|
#elif defined(__GNUC__) && defined(__cplusplus)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif /* OS-specific bits */
|
||||||
|
|
||||||
/*qt_post.h*/
|
/*qt_post.h*/
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wshadow"
|
#pragma clang diagnostic ignored "-Wshadow"
|
||||||
|
#elif defined(__GNUC__) && defined(__cplusplus)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*qt_pre.h*/
|
/*qt_pre.h*/
|
||||||
|
|||||||
Reference in New Issue
Block a user