Re: [PATCH spice-common] Define a new SPICE_VERIFY macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Mon, Nov 14, 2016 at 04:55:22PM +0000, Frediano Ziglio wrote:
> The verify macro used currently has some problem
> as it raise a warning in RHEL6.
> As suggested in verify.h use verify_expr macro
> to avoid the warning.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  common/macros.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/common/macros.h b/common/macros.h
> index fe36929..1e3ded8 100644
> --- a/common/macros.h
> +++ b/common/macros.h
> @@ -19,6 +19,8 @@
>  #ifndef __MACROS_H
>  #define __MACROS_H
>  
> +#include "verify.h"
> +
>  #if    __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)
>  #define SPICE_ATTR_NORETURN                                  \
>      __attribute__((noreturn))
> @@ -51,5 +53,6 @@
>  #error Please implement SPICE_CONSTRUCTOR_FUNC and SPICE_DESTRUCTOR_FUNC for this compiler
>  #endif
>  
> +#define SPICE_VERIFY(cond) verify_expr(cond, (void)1)
>  
>  #endif /* __MACROS_H */
> -- 
> 2.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]