Skip to content

cppcheck false positives due to LogFatal not being parsed as noreturn #237

@azonenberg

Description

@azonenberg

Lots of areas in the code (e.g. AntikernelLabsOscilloscope.cpp:49) call LogFatal() if something catastrophic happens, which prints an error to all configured log sinks then aborts.

cppcheck does not seem to recognize this as a noreturn call, which leads to false positive warnings about potential null dereferences etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildBuild system and infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions