[Clang] Added release note for improved -Wunused-but-set-variable warning
authorDávid Bolvanský <david.bolvansky@gmail.com>
Fri, 25 Mar 2022 09:45:08 +0000 (10:45 +0100)
committerDávid Bolvanský <david.bolvansky@gmail.com>
Fri, 25 Mar 2022 09:45:28 +0000 (10:45 +0100)
clang/docs/ReleaseNotes.rst

index b268d0f..cb2d81e 100644 (file)
@@ -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