[Nagios-devel] [PATCH] fix POPs warning

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] fix POPs warning

Post by Guest »


utils.c: In function 'my_system':
utils.c:2653: warning: value computed is not used

Make POPs usage consistent with other places.

---
base/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: nagios-2.5/base/utils.c
===================================================================
--- nagios-2.5.orig/base/utils.c
+++ nagios-2.5/base/utils.c
@@ -2650,7 +2650,7 @@ int my_system(char *cmd,int timeout,int
/*
* XXXX need pipe open to send the compilation failure message back to Nag ?
*/
- POPs ;
+ (void) POPs ;

snprintf(buffer,sizeof(buffer)-1,"%s", SvPVX(ERRSV));
buffer[sizeof(buffer)-1]='\x0';





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