Pino Toscano
2015-Nov-18 10:19 UTC
Re: [Libguestfs] [PATCH 5/5] build: Enable some more warnings.
On Monday 09 November 2015 23:02:15 Richard W.M. Jones wrote:> After fixing some warnings (see prior commits), we can now enable > them in configure.ac. > --- > [...] > -nw="$nw -Winline" # daemon.h's asprintf_nowarnDisabling -Winline causes the Python binding code to fail with build with GCC < 4.9, because of the static inline functions in python/guestfs-py.h. See for example on CentOS 7.1 and openSUSE 13.1: https://ci.centos.org/view/libguestfs/job/libguestfs/label=libguestfs-ci-CentOS-7-slave01/108/console https://ci.centos.org/view/libguestfs/job/libguestfs/label=libguestfs-ci-opensuse-13.2-slave01/108/console Would it be acceptable to de-inline them into normal functions? -- Pino Toscano
Richard W.M. Jones
2015-Nov-18 10:41 UTC
Re: [Libguestfs] [PATCH 5/5] build: Enable some more warnings.
On Wed, Nov 18, 2015 at 11:19:02AM +0100, Pino Toscano wrote:> On Monday 09 November 2015 23:02:15 Richard W.M. Jones wrote: > > After fixing some warnings (see prior commits), we can now enable > > them in configure.ac. > > --- > > [...] > > -nw="$nw -Winline" # daemon.h's asprintf_nowarn > > Disabling -Winline causes the Python binding code to fail with build > with GCC < 4.9, because of the static inline functions in > python/guestfs-py.h. See for example on CentOS 7.1 and openSUSE 13.1: > https://ci.centos.org/view/libguestfs/job/libguestfs/label=libguestfs-ci-CentOS-7-slave01/108/console > https://ci.centos.org/view/libguestfs/job/libguestfs/label=libguestfs-ci-opensuse-13.2-slave01/108/console > > Would it be acceptable to de-inline them into normal functions?The -Winline warning looks completely useless. Who cares if a function can't be inlined? So enabling it was probably a mistake. Can we disable it (the warning) again? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Pino Toscano
2015-Nov-18 10:45 UTC
Re: [Libguestfs] [PATCH 5/5] build: Enable some more warnings.
On Wednesday 18 November 2015 10:41:33 Richard W.M. Jones wrote:> On Wed, Nov 18, 2015 at 11:19:02AM +0100, Pino Toscano wrote: > > On Monday 09 November 2015 23:02:15 Richard W.M. Jones wrote: > > > After fixing some warnings (see prior commits), we can now enable > > > them in configure.ac. > > > --- > > > [...] > > > -nw="$nw -Winline" # daemon.h's asprintf_nowarn > > > > Disabling -Winline causes the Python binding code to fail with build > > with GCC < 4.9, because of the static inline functions in > > python/guestfs-py.h. See for example on CentOS 7.1 and openSUSE 13.1: > > https://ci.centos.org/view/libguestfs/job/libguestfs/label=libguestfs-ci-CentOS-7-slave01/108/console > > https://ci.centos.org/view/libguestfs/job/libguestfs/label=libguestfs-ci-opensuse-13.2-slave01/108/console > > > > Would it be acceptable to de-inline them into normal functions? > > The -Winline warning looks completely useless. Who cares if a > function can't be inlined? So enabling it was probably a mistake. > Can we disable it (the warning) again?OK for me. Thanks, -- Pino Toscano