|
| From: | Peter Maydell |
| Subject: | Re: [Qemu-devel] [PATCH v2 1/2] coroutine-ucontext: Help valgrind understand coroutines |
| Date: | Fri, 13 Jul 2012 16:37:41 +0100 |
On 13 July 2012 16:31, Kevin Wolf <address@hidden> wrote:
> +#ifdef CONFIG_VALGRIND_H
> +/* Work around an unused variable in the valgrind.h macro... */
> +#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
> +static inline void valgrind_stack_deregister(CoroutineUContext *co)
> +{
> + VALGRIND_STACK_DEREGISTER(co->valgrind_stack_id);
> +}
> +#pragma GCC diagnostic error "-Wunused-but-set-variable"
> +#endif
'#pragma .. error' will defeat the configure code which makes warnings
not fatal in release builds.
-- PMM
| [Prev in Thread] | Current Thread | [Next in Thread] |