Menu

False positive on va_start/va_end

2016-06-17
2016-07-06
  • Reverend Homer

    Reverend Homer - 2016-06-17

    Hi,

    Unfortunately I cannot create a ticket in the bug tracker, because it doesn't want to send me verification e-mails.

    We've caught a false positive in our project. Here is a reduced code. It won't compile, but already generates this error:

    $ cppcheck cppcheck.cpp
    Checking cppcheck.cpp...
    [cppcheck.cpp:23]: (error) va_list 'marker' was opened but not closed by va_end().
    $
    

    Can you please fix it? Thank you!

     
  • Colomban Wendling

    Seems like it's fixed in dev version, see http://trac.cppcheck.net/ticket/7533

     
  • Sander Bouwhuis

    Sander Bouwhuis - 2016-07-06

    Ah, that's great. I too am experiencing this problem.

     

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.