[libvirt] [PATCH] Define ATTRIBUTE_SENTINEL for GCC < 4.0 too

Daniel P. Berrange berrange at redhat.com
Tue Dec 22 10:22:32 UTC 2009


On Tue, Dec 22, 2009 at 02:15:24AM +0100, Matthias Bolte wrote:
> ATTRIBUTE_SENTINEL was defined for GCC >= 4.0 only, resulting in
> compile errors when using GCC < 4.0.
> ---
>  src/internal.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/internal.h b/src/internal.h
> index 09c19ea..5ca1fa3 100644
> --- a/src/internal.h
> +++ b/src/internal.h
> @@ -100,6 +100,8 @@
>  #ifndef ATTRIBUTE_SENTINEL
>  #if __GNUC_PREREQ (4, 0)
>  #define ATTRIBUTE_SENTINEL __attribute__((__sentinel__))
> +#else
> +#define ATTRIBUTE_SENTINEL
>  #endif
>  #endif
>  
> -- 

ACK


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list