I am getting this for cppcheck on sqlite3.c on the following piece of code:
#if defined(SQLITE_SYSTEM_MALLOC) \
+ defined(SQLITE_WIN32_MALLOC) \
+ defined(SQLITE_ZERO_MALLOC) \
+ defined(SQLITE_MEMDEBUG)>1
# error "Two or more of the following compile-time configuration options\
are defined but at most one is allowed:\
SQLITE_SYSTEM_MALLOC, SQLITE_WIN32_MALLOC, SQLITE_MEMDEBUG,\
SQLITE_ZERO_MALLOC"
#endif
Specifically the error message points to the 6th line above. Seems it's not taking the line continuation \ char in account.
This does not happen in older versions like 1.79.
(I planned to add this to the issue tracker but it was closed for new account and pointed to the irc channel, but on the irc channel I was not allowed to write, so using the third option to post it here...)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting this for cppcheck on sqlite3.c on the following piece of code:
Specifically the error message points to the 6th line above. Seems it's not taking the line continuation \ char in account.
This does not happen in older versions like 1.79.
(I planned to add this to the issue tracker but it was closed for new account and pointed to the irc channel, but on the irc channel I was not allowed to write, so using the third option to post it here...)
Could be an issue with simplecpp the preprocessor used by Cppcheck.
I created a ticket that could be related: https://github.com/danmar/simplecpp/issues/128
Thanks, seems related. Subscribed.