<122 lines deleted by Adrian Aichner>
c:\Hacking\cvs.xemacs.org\XEmacs\xemacs-21.5-clean\src\alloc.c(3099)
: warning C4390: ';' : empty controlled statement found; is this the intent?
I'm at a loss at this one, after first consulting
http://search.microsoft.com/search/results.aspx?qu=%22empty%20controlled%...
I can't see any empty controlled statement in the area that could
cause this.
c:\Hacking\cvs.xemacs.org\XEmacs\xemacs-21.5-clean\src\text.c(2177) :
warning C4390: ';' : empty controlled statement found; is this the intent?
I got that one figured out. The problem is caused by the
ASSERT_ASCTEXT_ASCII_LEN macro evaluating to nothing if
ERROR_CHECK_TEXT is not defined.
This makes following if have an empty controlled statement.
if (is_ascii)
ASSERT_ASCTEXT_ASCII_LEN ((Ascbyte *) dst, dstlen);
=> return (fold_case == 0 ? qxememcmp4 (src, len, dst, dstlen) :
fold_case == 1 ? qxememcasecmp4 (src, len, dst, dstlen) :
qxetextcasecmp (src, len, dst, dstlen));
=== from text.h ===
#ifdef ERROR_CHECK_TEXT
#define ASSERT_ASCTEXT_ASCII_LEN(ptr, len) \
do { \
int aia2; \
const Ascbyte *aia2ptr = (ptr); \
int aia2len = (len); \
\
for (aia2 = 0; aia2 < aia2len; aia2++) \
assert (aia2ptr[aia2] >= 0x00 && aia2ptr[aia2] < 0x7F); \
} while (0)
#define ASSERT_ASCTEXT_ASCII(ptr) \
do { \
const Ascbyte *aiaz2 = (ptr); \
ASSERT_ASCTEXT_ASCII_LEN (aiaz2, strlen (aiaz2)); \
} while (0)
#else
#define ASSERT_ASCTEXT_ASCII_LEN(ptr, len)
#define ASSERT_ASCTEXT_ASCII(ptr)
#endif
<219 lines deleted by Adrian Aichner>
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/