[clang] 520c8ca - [Clang] Added release note for improved -Wunused-but-set-variable warning
Dávid Bolvanský via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 02:45:46 PDT 2022
Author: Dávid Bolvanský
Date: 2022-03-25T10:45:28+01:00
New Revision: 520c8ca9d2f940dd93618ad98c445573f13aa714
URL: https://github.com/llvm/llvm-project/commit/520c8ca9d2f940dd93618ad98c445573f13aa714
DIFF: https://github.com/llvm/llvm-project/commit/520c8ca9d2f940dd93618ad98c445573f13aa714.diff
LOG: [Clang] Added release note for improved -Wunused-but-set-variable warning
Added:
Modified:
clang/docs/ReleaseNotes.rst
Removed:
################################################################################
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index b268d0f8c20d8..cb2d81e21f243 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -93,6 +93,8 @@ Improvements to Clang's diagnostics
extension definitions of an inline namespace and therefore points its note
at the original definition. This fixes `Issue 50794 (PR51452)
<https://github.com/llvm/llvm-project/issues/50794>`_.
+- ``-Wunused-but-set-variable`` now also warns if the variable is only used
+ by unary operators.
Non-comprehensive list of changes in this release
- The builtin function __builtin_dump_struct would crash clang when the target
More information about the cfe-commits
mailing list