Menu

Empty define in library doesn't work like i would expect it

versat
2017-01-03
2017-01-06
  • versat

    versat - 2017-01-03

    Hi,
    i have a config file that includes this line:

      <define name="__no_operation()" value=""/>
    

    The config file is included via the --library parameter.
    But i still get the error

    --check-library: Function __no_operation() should have <noreturn> configuration
    

    where this "function" is called.

    Shouldn't the defines in the config files be used by the cppcheck preprocessor (simplecpp)? So the function call shouldn't be visible for cppcheck?
    Or does it work in another way?

     
  • Daniel Marjamäki

    Shouldn't the defines in the config files be used by the cppcheck preprocessor (simplecpp)?

    yes that is the expected behaviour.

     

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.