[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] Magic error introduced by commit f09accc
- From: Jiri Denemark <jdenemar redhat com>
- To: Eric Blake <eblake redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] Magic error introduced by commit f09accc
- Date: Fri, 6 May 2011 21:18:21 +0200
On Fri, May 06, 2011 at 09:26:57 -0600, Eric Blake wrote:
> On 05/06/2011 01:56 AM, Jiri Denemark wrote:
> > Hi all,
> >
> > After commit f09accc (buf: add virBufferVasprintf) libvirt no longer compiles
> > with -Werror because of the following error:
> >
> > CC libvirt_util_la-macvtap.lo
> > cc1: warnings being treated as errors
> > /usr/include/netlink/object.h:58: error: inline function 'nl_object_priv'
> > declared but never defined
> >
> > I must admit I don't understand why including stdarg.h (which seems to be the
> > only change visible in macvtap.c) results in this warning.
> >
> > Does anyone have an idea?
>
> Which version of libnl and gcc?
libnl-1.1, gcc-4.4.5
You are right, that the commit results in -std=gnu99 being added to gcc
command line. However, the nl_object_priv is declared as
extern inline void * nl_object_priv(struct nl_object *);
So not 'static inline' but 'extern inline', I guess the issue is the same,
right?
Jirka
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]