[clang] 7a23920 - [clang] Fix an unused variable warning

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 20 17:42:08 PDT 2022


Author: Kazu Hirata
Date: 2022-09-20T17:41:58-07:00
New Revision: 7a239200e673c4e4c0c6d87cd35bce5bac2d44a7

URL: https://github.com/llvm/llvm-project/commit/7a239200e673c4e4c0c6d87cd35bce5bac2d44a7
DIFF: https://github.com/llvm/llvm-project/commit/7a239200e673c4e4c0c6d87cd35bce5bac2d44a7.diff

LOG: [clang] Fix an unused variable warning

This patch fixes:

  clang/lib/Driver/ToolChains/PS4CPU.cpp:159:14: error: unused
  variable 'IsPS5' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/PS4CPU.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/PS4CPU.cpp b/clang/lib/Driver/ToolChains/PS4CPU.cpp
index fc905ff74fd7..989bdb4065ea 100644
--- a/clang/lib/Driver/ToolChains/PS4CPU.cpp
+++ b/clang/lib/Driver/ToolChains/PS4CPU.cpp
@@ -158,6 +158,7 @@ void tools::PScpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
   const bool IsPS4 = TC.getTriple().isPS4();
   const bool IsPS5 = TC.getTriple().isPS5();
   assert(IsPS4 || IsPS5);
+  (void)IsPS5;
 
   ArgStringList DbgOpts;
 


        


More information about the cfe-commits mailing list