Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2016 09:29:54 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   [r293629]: ip_fw_table_algo.c:3818:6: error: variable 'error' is used uninitialized whenever 'if' condition is false
Message-ID:  <20160110092954.687fe472.ohartman@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
--Sig_/XIGiHfNS0sNLzcQFXXnbP2e
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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: err=
or: variable
'error' is used uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized] if (keylen =3D=3D 4) { ^~~~~~~~~~~
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3833:6: not=
e:
uninitialized use occurs here if (error !=3D 0)
            ^~~~~
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3818:2: not=
e: remove the
'if' if its condition is always true if (keylen =3D=3D 4) {
        ^~~~~~~~~~~~~~~~~
/usr/src/sys/modules/ipfw/../../netpfil/ipfw/ip_fw_table_algo.c:3815:11: no=
te: initialize
the variable 'error' to silence this warning int error;
                 ^
                  =3D 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

--Sig_/XIGiHfNS0sNLzcQFXXnbP2e
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWkhaCAAoJEOgBcD7A/5N8rbwH/1w7UkxdgZPPNs81abD1sg7z
r5YmgDgYpmyZh/uKVOxQqdseptQu3mb9iYD/8o1Y7jlp+SqvlZO1n2vfmNtTgvFZ
oHCumN8VMVwaW9jqtQAW44PiTEM/EgjQjqU5xfISR8gMZuKMsvQfoC5LmOOyd0pM
Mh9CaZfdS7/hIDUXfFO4LW7vit8n5uA7t+Ag8yEgIBk4Fb6u7qp1F9kak5kJ6esY
zLFGwUh/NmDKx7e1ZyZLd3PhdDwhXQy+Ndn7/ZArgQNdmeL0dIKDEnIxF9QKXEhC
bf7lhMDoeiYfPRuTunOldURKWt6lbrySC7Iwmsb7JG1Q8IcSehUAEYECrgU0QKU=
=0Rl1
-----END PGP SIGNATURE-----

--Sig_/XIGiHfNS0sNLzcQFXXnbP2e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160110092954.687fe472.ohartman>