From 8837ccf286599e86a9f322b95bfcd05b12d1055a Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Sun, 13 Jul 2014 12:33:39 +0200 Subject: [PATCH] calc.cpp: minor changes to remove compiler warnings --- calc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calc.cpp b/calc.cpp index 258fc177..c2c1acde 100644 --- a/calc.cpp +++ b/calc.cpp @@ -272,6 +272,7 @@ static double docalc1(TCHAR op, struct calcstack *sv1, double v2) return docalcx (op, v1, v2); } +#if CALC_DEBUG static TCHAR *stacktostr(struct calcstack *st) { static TCHAR out[256]; @@ -280,6 +281,7 @@ static TCHAR *stacktostr(struct calcstack *st) _stprintf(out, _T("%f"), st->val); return out; } +#endif static TCHAR *chartostack(TCHAR c) { @@ -294,7 +296,7 @@ static bool execution_order(const TCHAR *input, double *outval) const TCHAR *strpos = input, *strend = input + _tcslen(input); TCHAR c, res[4]; unsigned int sl = 0, rn = 0; - struct calcstack stack[STACK_SIZE] = { 0 }, *sc, *sc2; + struct calcstack stack[STACK_SIZE] = { { 0 } }, *sc, *sc2; double val = 0; int i; bool ok = false; -- 2.47.3