File tree 4 files changed +8
-3
lines changed 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3268,8 +3268,10 @@ fi
3268
3268
3269
3269
pragma_disable_unused_but_set=no
3270
3270
cat > $TMPC << EOF
3271
+ #pragma GCC diagnostic push
3271
3272
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
3272
3273
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
3274
+ #pragma GCC diagnostic pop
3273
3275
3274
3276
int main(void) {
3275
3277
return 0;
Original file line number Diff line number Diff line change @@ -169,14 +169,15 @@ Coroutine *qemu_coroutine_new(void)
169
169
#ifdef CONFIG_VALGRIND_H
170
170
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
171
171
/* Work around an unused variable in the valgrind.h macro... */
172
+ #pragma GCC diagnostic push
172
173
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
173
174
#endif
174
175
static inline void valgrind_stack_deregister (CoroutineUContext * co )
175
176
{
176
177
VALGRIND_STACK_DEREGISTER (co -> valgrind_stack_id );
177
178
}
178
179
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
179
- #pragma GCC diagnostic error "-Wunused-but-set-variable"
180
+ #pragma GCC diagnostic pop
180
181
#endif
181
182
#endif
182
183
Original file line number Diff line number Diff line change 8
8
9
9
/* pixman-0.16.0 headers have a redundant declaration */
10
10
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
11
+ #pragma GCC diagnostic push
11
12
#pragma GCC diagnostic ignored "-Wredundant-decls"
12
13
#endif
13
14
#include <pixman.h>
14
15
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
15
- #pragma GCC diagnostic error "-Wredundant-decls"
16
+ #pragma GCC diagnostic pop
16
17
#endif
17
18
18
19
#include "qemu/typedefs.h"
Original file line number Diff line number Diff line change 38
38
39
39
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
40
40
/* Work around an -Wstrict-prototypes warning in GTK headers */
41
+ #pragma GCC diagnostic push
41
42
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
42
43
#endif
43
44
#include <gtk/gtk.h>
44
45
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
45
- #pragma GCC diagnostic error "-Wstrict-prototypes"
46
+ #pragma GCC diagnostic pop
46
47
#endif
47
48
48
49
You can’t perform that action at this time.
0 commit comments