[Nagios-devel] [PATCH] Unused result var on config.c
Posted: Fri Jun 22, 2012 4:09 pm
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
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]
eck(), so, we just don't need it.
This patch avoid warning=20
config.c
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]