[Pkg-wmaker-commits] [wmcalc] 29/65: wmcalc: Fix -Wunused-result compiler warning.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sun Aug 23 13:54:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcalc.

commit eb5c9ae0ce2fecc9cdc6ff4b4bf9423264041a39
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Jan 10 10:59:47 2015 -0600

    wmcalc: Fix -Wunused-result compiler warning.
---
 wmcalcfunc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wmcalcfunc.c b/wmcalcfunc.c
index 17f9518..4215e52 100644
--- a/wmcalcfunc.c
+++ b/wmcalcfunc.c
@@ -521,5 +521,6 @@ void startcalc(void) {
   if (Verbose) 
     fprintf(stderr, "Starting external calculator %s\n", SysCalcCmd);
 
-  system(SysCalcCmd);
+  if (system(SysCalcCmd) == -1)
+    fprintf(stderr, "%s returned an error.\n", SysCalcCmd);
 } /*****  End of function startcalc *****************************/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcalc.git



More information about the Pkg-wmaker-commits mailing list