]> git.ipfire.org Git - thirdparty/lldpd.git/commit
build: allow more modern coding style with empty initializers
authorVincent Bernat <bernat@luffy.cx>
Tue, 25 Dec 2012 21:38:38 +0000 (22:38 +0100)
committerVincent Bernat <bernat@luffy.cx>
Wed, 26 Dec 2012 00:11:52 +0000 (01:11 +0100)
commitd56bb3bd6cf8f501ce23dc50ee53dc573c9253a0
tree1212fc583e8d8f0e40f30f97cd57a24f626d38e3
parentfda729fd1232135f1c4d9ef9f8fdace8be8600e3
build: allow more modern coding style with empty initializers

In C99, we can do:

     struct ifreq ifr = {};

Instead of

     struct ifreq ifr;
     memset(&ifr, 0. sizeof(ifr));

We disable the empty initializer warning to allow this. Moreover, we
also allow to mix code and declarations.
configure.ac