Menu

library not behaving as before in v1.81

2017-10-11
2017-10-11
  • Robert Morin

    Robert Morin - 2017-10-11

    Hi,

    I'm using cppcheck with --library=./rules.cfg to prevent warnings (like uninitialized variable) on a function that never return. It was working fine before 1.81 and now it's failing with "(error) Uninitialized variable: x" when encountering that function.

    Here is my rules.cfg

    <def format="2"> <function name="AssertFatal"> <noreturn>true</noreturn> </function> </def>

    Robert

     
  • Daniel Marjamäki

    Doesn't AssertFatal take any arguments? The number of arguments must match otherwise Cppcheck will assume it is an mismatching configuration.

     

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.