Skip to content

Fix ignored attributes compiler warning#7719

Merged
firewave merged 1 commit intocppcheck-opensource:mainfrom
GNL10:fix-ignored-attributes-warning
Aug 7, 2025
Merged

Fix ignored attributes compiler warning#7719
firewave merged 1 commit intocppcheck-opensource:mainfrom
GNL10:fix-ignored-attributes-warning

Conversation

@GNL10
Copy link
Copy Markdown
Contributor

@GNL10 GNL10 commented Aug 5, 2025

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 5, 2025

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Aug 7, 2025

Thanks for your contribution. How do you want to be credited?

For completeness here's the warning in question:

/mnt/s/GitHub/cppcheck-fw/cli/filelister.cpp: In function ‘std::string addFiles2(std::__debug::list<FileWithDetails>&, const std::string&, const std::__debug::set<std::__cxx11::basic_string<char> >&, bool, const PathMatch&, bool)’:
/mnt/s/GitHub/cppcheck-fw/cli/filelister.cpp:224:45: warning: ignoring attributes on template argument ‘int (*)(DIR*)’ [-Wignored-attributes]
  224 |     std::unique_ptr<DIR, decltype(&closedir)> dir_deleter(dir, closedir);
      |                                             ^

@firewave firewave merged commit 11d1a75 into cppcheck-opensource:main Aug 7, 2025
63 checks passed
@GNL10
Copy link
Copy Markdown
Contributor Author

GNL10 commented Aug 7, 2025

Hi,
"Goncalo Mao-Cheia" works :).

@GNL10 GNL10 deleted the fix-ignored-attributes-warning branch August 30, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants