This applies to -Wunused-but-set-variable and
-Wunused-but-set-parameter.
This addresses bug 51865.
Differential D109862
Don't diagnose unused but set when the Cleanup attribute is used. mbenfield on Sep 15 2021, 4:47 PM. Authored by
Details This applies to -Wunused-but-set-variable and This addresses bug 51865.
Diff Detail
Event TimelineComment Actions I think this is reasonable, but it's missing test coverage. Can you add some tests to clang/test/Sema to demonstrate that we purposefully do not issue a diagnostic when the cleanup attribute is used? |