]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/sd-dhcp-client.c
core: avoid compiler warning when compiling with -fexceptions 2756/head
authorThomas Haller <thaller@redhat.com>
Sat, 27 Feb 2016 12:40:50 +0000 (13:40 +0100)
committerThomas Haller <thaller@redhat.com>
Sat, 27 Feb 2016 12:40:50 +0000 (13:40 +0100)
commit3587161ade40a4f093175217d87d6323b3aba168
tree517e77c18491f81065daf9d4cf6997042416289a
parent06fb28b16eb4b6170c2e2c0cf1f673730309509b
core: avoid compiler warning when compiling with -fexceptions

Initialize auto variables with cleanup attribute, otherwise we
get a compiler warning with -fexceptions.

    ./configure CFLAGS='-Wmaybe-uninitialized -fexceptions -O2'
src/basic/fileio.c
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/sd-dhcp-lease.c