#define CATCH_CONFIG_MAIN #include "thirdparty/catch2/catch.hpp" #include <fmt/format.h> using namespace fmt::literals; TEST_CASE("cppcheck: (error) Boolean value assigned to pointer.") { const auto str = fmt::format("{named}", "named"_a=true); }
This is a snippet from an unit-test (using https://github.com/fmtlib/fmt) and cppcheck 1.88 marks the single line in the test case as an error.
Log in to post a comment.
This is a snippet from an unit-test (using https://github.com/fmtlib/fmt) and cppcheck 1.88 marks the single line in the test case as an error.