[llvm] r295327 - [WebAssembly] Add a cast to void to fix an unused private member warning, for now.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 07:21:37 PST 2017


Author: djg
Date: Thu Feb 16 09:21:37 2017
New Revision: 295327

URL: http://llvm.org/viewvc/llvm-project?rev=295327&view=rev
Log:
[WebAssembly] Add a cast to void to fix an unused private member warning, for now.

Modified:
    llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp?rev=295327&r1=295326&r2=295327&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp Thu Feb 16 09:21:37 2017
@@ -48,7 +48,9 @@ class WebAssemblyMCCodeEmitter final : p
 
 public:
   WebAssemblyMCCodeEmitter(const MCInstrInfo &mcii, MCContext &ctx)
-      : MCII(mcii), Ctx(ctx) {}
+      : MCII(mcii), Ctx(ctx) {
+    (void)Ctx;
+  }
 };
 } // end anonymous namespace
 




More information about the llvm-commits mailing list