From: Frode Solheim Date: Sun, 13 Jul 2014 10:33:39 +0000 (+0200) Subject: calc.cpp: minor changes to remove compiler warnings X-Git-Tag: 3000~123^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=8837ccf286599e86a9f322b95bfcd05b12d1055a;p=francis%2Fwinuae.git calc.cpp: minor changes to remove compiler warnings --- 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;