CppCheck [internalAstError]
Bug report
What happened / Problem description:
When running the Cppcheck (static code analyzer) on dumux. It reports 2 errors related to the fmt format library. One error is a syntax error in the dumux/dumux/io/format/fmt/format-inl.h file :
Checking dumux/dumux/io/format/fmt/format.cc: _HAS_EXCEPTIONS=0;__EXCEPTIONS;GNUC... dumux/dumux/io/format/fmt/format-inl.h:208:61: error: Syntax Error: AST broken, binary operator '=' doesn't have two operands. [internalAstError] FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default;
What you expected to happen:
No errors from Cppcheck
How to reproduce it (as minimally and precisely as possible):
run Cppcheck 2.10 on DuMux 3.6
Anything else we need to know?:
We maybe able to correct both errors by upgrading to the latest version of the fmt library instead of our version 7.1.0 from 2 years ago we can go to the latest version 9.1.0. But this upgrade might create other problems.
Environment:
- Dune version: 2.9
- DuMux version: 3.6
- Others: Cppcheck 2.10