[systemd-devel] Minimum required gcc version?

Lennart Poettering lennart at poettering.net
Thu Jun 18 06:20:04 PDT 2015


On Thu, 18.06.15 14:29, Michael Olbrich (m.olbrich at pengutronix.de) wrote:

> Hi,
> 
> 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?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list