[r293629]: ip_fw_table_algo.c:3818:6: error: variable 'error' is used uninitialized whenever 'if' condition is false
O. Hartmann
ohartman at zedat.fu-berlin.de
Sun Jan 10 08:30:02 UTC 2016
Kernel build fails with the error shown below:
[...]
--- all_subdir_ipfw ---
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3818:6: error: variable
'error' is used uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized] if (keylen == 4) { ^~~~~~~~~~~
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3833:6: note:
uninitialized use occurs here if (error != 0)
^~~~~
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3818:2: note: remove the
'if' if its condition is always true if (keylen == 4) {
^~~~~~~~~~~~~~~~~
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3815:11: note: initialize
the variable 'error' to silence this warning int error;
^
= 0
1 error generated.
*** [ip_fw_table_algo.o] Error code 1
make[4]: stopped in /usr/src/sys/modules/ipfw
1 error
make[4]: stopped in /usr/src/sys/modules/ipfw
*** [all_subdir_ipfw] Error code 2
[...]
Kind regards,
oh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160110/6c019934/attachment.sig>
More information about the freebsd-current
mailing list