summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-04-24 16:46:22 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-04-24 16:46:22 (GMT)
commit9c8171eab959495910fe2486b0ddf05476dfa3fb (patch)
treea611ef2d9059140d61492e78bef1f4d78cc682aa /src
parent2c72e1c70c71966c3453d195c441e1cb69195779 (diff)
downloadDoxygen-9c8171eab959495910fe2486b0ddf05476dfa3fb.zip
Doxygen-9c8171eab959495910fe2486b0ddf05476dfa3fb.tar.gz
Doxygen-9c8171eab959495910fe2486b0ddf05476dfa3fb.tar.bz2
Warning when preprocessing conditionals
In case in a `#if` statement a space in the use of a macro is present a warning of the type: warning: preprocessing issue while doing constant expression evaluation: syntax error is given. Removing the white space after an ID solves the issue In the following the first expressing gives a warning whilst the second expression doesn't: #if (!__GNUC_PREREQ (4, 6)) int i0; #endif #if (!__GNUC_PREREQ(4, 6)) int k0; #endif
Diffstat (limited to 'src')
-rw-r--r--src/pre.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pre.l b/src/pre.l
index 6ae379a..c2954ab 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1255,6 +1255,7 @@ QCString removeIdsAndMarkers(const char *s)
result+="0L";
p++;
while ((c=*p) && isId(c)) p++;
+ while ((c=*p) && isspace((uchar)c)) p++;
if (*p=='(') // undefined function macro
{
p++;