summaryrefslogtreecommitdiff
path: root/coroutine-ucontext.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-01-09 10:17:07 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-01-12 12:42:53 +0000
commitcc6e3ca93c1b40fba579e8724dd06ca9f0507b31 (patch)
tree3d399ad9e3ed9503b44ba96f31926b53afb8e9ec /coroutine-ucontext.c
parent3dd46c78525a30e98c68a44e1c3797d9fcfb0462 (diff)
downloadqemu-cc6e3ca93c1b40fba579e8724dd06ca9f0507b31.tar.gz
qemu-cc6e3ca93c1b40fba579e8724dd06ca9f0507b31.tar.bz2
qemu-cc6e3ca93c1b40fba579e8724dd06ca9f0507b31.zip
gcc: rename CONFIG_PRAGMA_DISABLE_UNUSED_BUT_SET to CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'coroutine-ucontext.c')
-rw-r--r--coroutine-ucontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coroutine-ucontext.c b/coroutine-ucontext.c
index 2ed703a3ed..a9c30e9df4 100644
--- a/coroutine-ucontext.c
+++ b/coroutine-ucontext.c
@@ -200,7 +200,7 @@ Coroutine *qemu_coroutine_new(void)
}
#ifdef CONFIG_VALGRIND_H
-#ifdef CONFIG_PRAGMA_DISABLE_UNUSED_BUT_SET
+#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
/* Work around an unused variable in the valgrind.h macro... */
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
@@ -208,7 +208,7 @@ static inline void valgrind_stack_deregister(CoroutineUContext *co)
{
VALGRIND_STACK_DEREGISTER(co->valgrind_stack_id);
}
-#ifdef CONFIG_PRAGMA_DISABLE_UNUSED_BUT_SET
+#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
#pragma GCC diagnostic error "-Wunused-but-set-variable"
#endif
#endif