[Nagios-devel] [PATCH] Unused result var on config.c

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] Unused result var on config.c

Post by Guest »

We are not using the result var anywhere on function pre_flight_circular_ch=
eck(), so, we just don't need it.

This patch avoid warning=20

config.c:2710:6: warning: variable =E2=80=98result=E2=80=99 set but not use=
d [-Wunused-but-set-variable]

OK? Comments?


--- base/config.c=09(revision 1973)
+++ base/config.c=09(working copy)
@@ -2707,7 +2707,6 @@
=09hostdependency *temp_hd =3D NULL;
=09hostdependency *temp_hd2 =3D NULL;
=09int found =3D FALSE;
-=09int result =3D OK;
=09int warnings =3D 0;
=09int errors =3D 0;
=20
@@ -2725,7 +2724,6 @@
=20
=09/* check routes between all hosts */
=09found =3D FALSE;
-=09result =3D OK;
=20
=20
=09/* We clean the dsf status from previous check */





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked