cppcheck-2.14.1/cli/filelister.cpp:186:53: warning: ignoring attributes on template argument ‘int ()(DIR)’ [-Wignored-attributes]
std::unique_ptr<dir, decltype(&closedir)=""> dir_deleter(dir, closedir); // line #186</dir,>
Ubuntu 22.04
Here's one way to ignore it
#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wignored-attributes" std::unique_ptr<DIR, decltype(&closedir)> dir_deleter(dir, closedir); #pragma GCC diagnostic pop
If it bothers you, you could open a PR at https://github.com/danmar/cppcheck/
Log in to post a comment.
cppcheck-2.14.1/cli/filelister.cpp:186:53: warning: ignoring attributes on template argument ‘int ()(DIR)’ [-Wignored-attributes]
std::unique_ptr<dir, decltype(&closedir)=""> dir_deleter(dir, closedir); // line #186</dir,>
Ubuntu 22.04
Here's one way to ignore it
If it bothers you, you could open a PR at https://github.com/danmar/cppcheck/