wmcalc: Fix -Wunused-result compiler warning.

This commit is contained in:
Doug Torrance 2015-01-10 10:59:47 -06:00 committed by Carlos R. Mafra
parent d5d266d6d1
commit 587fe05cc1

View file

@ -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 *****************************/