This reverts commit 9b0501abc7b515b740fb5ee929817442dd3029a5.
There are false positives in the linux kernel and other projects.
| Paths 
 |  Differential  D101480  
Revert "[Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable" AbandonedPublic Authored by mbenfield on Apr 28 2021, 12:12 PM. 
Details Summary This reverts commit 9b0501abc7b515b740fb5ee929817442dd3029a5. There are false positives in the linux kernel and other projects. 
Diff Detail 
 Event TimelineHerald added subscribers: frasercrmck, luismarques, apazos and 19 others.  ·  View Herald TranscriptApr 28 2021, 12:12 PM Comment Actions Thank you for this! Also I think it’s very well that you want to implement this warning in clang, with a little bit of more polish it will be up for merger! This revision is now accepted and ready to land.Apr 28 2021, 12:20 PM 
Revision Contents 
 
 
 
Diff 341289 clang/include/clang/Basic/DiagnosticGroups.td
 clang/include/clang/Basic/DiagnosticSemaKinds.td
 
 clang/include/clang/Sema/Sema.h
 
 clang/lib/Sema/SemaDecl.cpp
 
 clang/lib/Sema/SemaExpr.cpp
 
 clang/lib/Sema/SemaStmt.cpp
 clang/test/CodeGen/X86/x86_32-xsave.c
 clang/test/CodeGen/X86/x86_64-xsave.c
 clang/test/CodeGen/builtins-arm.c
 clang/test/CodeGen/builtins-riscv.c
 clang/test/FixIt/fixit.cpp
 clang/test/Misc/warning-wall.c
 clang/test/Sema/shift.c
 clang/test/Sema/vector-gcc-compat.c
 clang/test/Sema/warn-unused-but-set-parameters.c
 
 clang/test/Sema/warn-unused-but-set-variables.c
 
 clang/test/SemaCXX/goto.cpp
 clang/test/SemaCXX/shift.cpp
 clang/test/SemaCXX/sizeless-1.cpp
 clang/test/SemaCXX/warn-unused-but-set-parameters-cpp.cpp
 
 clang/test/SemaCXX/warn-unused-but-set-variables-cpp.cpp
 
 clang/test/SemaObjC/foreach.m
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||