[systemd-devel] Compile errors with -Og

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Jun 12 06:23:11 PDT 2013


On Wed, Jun 12, 2013 at 01:02:53PM +0200, Jan Janssen wrote:
> Hi,
> 
> I just tried compiling with -Og and I get these compiler errors.
> Those don't appear with any other optimization level, so I'm
> suspecting a compiler but here. But since I'm no C expert, I thought
> it would be best if I share this here to see if I'm right about this
> or whether this just shows some subtle bug in the code.
> 
> This is on a up-to-date arch box (gcc 4.8.1) and "make clean"
> run before trying to compile.
>From a cursory look, looks like a compiler/header/library bug...
Those stupid ones about openat() also happened on Debian and
Fedora and have been since fixed.

Other warnings about uninitialized variables: well, they *probably*
are wrong, but it is always to good to go over the code and check.
With -O3 or -O4 you'll get many more.

Zbyszek


More information about the systemd-devel mailing list