diff options
author | albert-github <albert.tests@gmail.com> | 2019-04-24 16:46:22 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-04-24 16:46:22 (GMT) |
commit | 9c8171eab959495910fe2486b0ddf05476dfa3fb (patch) | |
tree | a611ef2d9059140d61492e78bef1f4d78cc682aa | |
parent | 2c72e1c70c71966c3453d195c441e1cb69195779 (diff) | |
download | Doxygen-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
-rw-r--r-- | src/pre.l | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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++; |