Menu

(error) No pair for character (")

2018-08-02
2018-08-02
  • Daniel Bengtsson

    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...)

     
  • versat

    versat - 2018-08-02

    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

     
  • Daniel Bengtsson

    Thanks, seems related. Subscribed.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.