]> git.ipfire.org Git - thirdparty/systemd.git/commit
lldp: avoid compiler warnings in lldp_tfl_package_read* functions 1735/head
authorThomas Haller <thaller@redhat.com>
Sat, 31 Oct 2015 12:51:58 +0000 (13:51 +0100)
committerThomas Haller <thaller@redhat.com>
Sat, 31 Oct 2015 21:30:14 +0000 (22:30 +0100)
commit9ac8e913246d603c612b6083beac5a5ef7e307b2
treedf560a8ac70c37642afdcc926788bb1e1a4f08d9
parented574a6834d267c82cac0408fe977c26256bec9a
lldp: avoid compiler warnings in lldp_tfl_package_read* functions

gcc 5.1.1 wrongly warns about uninitialized variable @r2 when compiling
with "-Og". Refactor the code to avoid the warnings.

Fixes: 564cabd46c7c1532ad4d562bf8332eaed49ac201
src/libsystemd-network/lldp-tlv.c