For the reference, this problem is tracked @ https://github.com/systemd/systemd/issues/406
On Thu, Jun 18, 2015 at 5:34 PM, Lennart Poettering <lenn...@poettering.net> wrote: > On Thu, 18.06.15 17:33, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > >> Hi, >> >> On Thu, Jun 18, 2015 at 03:20:04PM +0200, Lennart Poettering wrote: >> > On Thu, 18.06.15 14:29, Michael Olbrich (m.olbr...@pengutronix.de) wrote: >> > > Do we have a minimum required gcc version? The README just lists gcc >> > > without any version. However the current git fails to build with gcc-4.7: >> > > In this version, gcc produces -Wshadow warnings for variables with the >> > > same >> > > name as a defined function (e.g. 'now' in several functions in >> > > src/core/device.c). This results in build errors because we compile with >> > > -Werror=shadow now. >> > >> > Hm, yuck. I figure we could add that only for gcc versions newer than >> > that, with a configure check... >> > >> > or can't you add a -Wno-shadow to CFLAGS on the configure cmdline, >> > overriding what we set there? >> >> I can easily work around this issue with cc_cv_CFLAGS__Werror_shadow=no in >> the environment for configure. I just wanted to report this in case you >> care about gcc-4.7. > > Well, it's easy enough to care for it I think in this case. If you > send me a patch that conditionalizes this in the configure script > depending on the gcc version I'd be willing to merge it. > > Lennart > > -- > Lennart Poettering, Red Hat > _______________________________________________ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel