From f82eed21f30285b762c72509edea4b13139d61f1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 16 Dec 2004 23:23:14 +0000 Subject: [PATCH] A hack for gcc: mingw 3.3.1 does some weird optimization with -O3 if "str" and "fmt" aren't used like this in mxsscanf. Dunno why. --- src/common/common.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/common.cpp b/src/common/common.cpp index 1cf7fbbce..011cd2b6f 100644 --- a/src/common/common.cpp +++ b/src/common/common.cpp @@ -1540,6 +1540,7 @@ mxsscanf(const string &str, string new_fmt; int result; + mxverb(5, "mxsscanf: str: %s /// fmt: %s\n", str.c_str(), fmt); fix_format(fmt, new_fmt); va_start(ap, fmt); result = vsscanf(str.c_str(), new_fmt.c_str(), ap);