commit | 1dd0cca7faef1d0223347caa30589c7d36a6ad8f | [log] [tgz] |
---|---|---|
author | Simon Horman <simon.horman@netronome.com> | Fri Dec 02 12:56:05 2016 +0100 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Fri Dec 02 14:17:09 2016 -0800 |
tree | f5cbf25b5aa007eb5ddf38b93eeb56c2c8688169 | |
parent | f5f760b81250630da23a4021c30e802695be79d2 [diff] |
ss: initialise variables outside of for loop Initialise for loops outside of for loops. GCC flags this as being out of spec unless C99 or C11 mode is used. With this change the entire tree appears to compile cleanly with -Wall. $ gcc --version gcc (Debian 4.9.2-10) 4.9.2 ... $ make ... ss.c: In function ‘unix_show_sock’: ss.c:3128:4: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode ... Signed-off-by: Simon Horman <simon.horman@netronome.com>