[llvm] r370615 - Fix MSVC unreferenced formal parameter warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 1 09:04:51 PDT 2019


Author: rksimon
Date: Sun Sep  1 09:04:51 2019
New Revision: 370615

URL: http://llvm.org/viewvc/llvm-project?rev=370615&view=rev
Log:
Fix MSVC unreferenced formal parameter warning. NFCI.

Modified:
    llvm/trunk/include/llvm/Support/raw_ostream.h

Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=370615&r1=370614&r2=370615&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Sun Sep  1 09:04:51 2019
@@ -294,7 +294,7 @@ public:
 
   // Enable or disable colors. Once disable_colors() is called,
   // changeColor() has no effect until enable_colors() is called.
-  virtual void enable_colors(bool enable) {}
+  virtual void enable_colors(bool /*enable*/) {}
 
   //===--------------------------------------------------------------------===//
   // Subclass Interface




More information about the llvm-commits mailing list