Subzero: Enable errors for unused parameters.
Uses pragmas when including problematic LLVM headers, so that clang
doesn't warn about unused parameters -- a rampant problem in the LLVM
code. This way, we can increase clang's pickiness on Subzero code,
and also not drown in LLVM warnings.
BUG= none
R=jpp@chromium.org, jvoung@chromium.org
Review URL: https://codereview.chromium.org/1217433002
diff --git a/src/IceCompileServer.cpp b/src/IceCompileServer.cpp
index 3b828cc..d36cdfd 100644
--- a/src/IceCompileServer.cpp
+++ b/src/IceCompileServer.cpp
@@ -17,6 +17,9 @@
#include "IceClFlagsExtra.h"
#include "IceELFStreamer.h"
#include "IceGlobalContext.h"
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-parameter"
// Include code to handle converting textual bitcode records to binary (for
// INPUT_IS_TEXTUAL_BITCODE).
#include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h"
@@ -25,6 +28,7 @@
#include "llvm/Support/Signals.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/StreamingMemoryObject.h"
+#pragma clang diagnostic pop
#include <fstream>
#include <iostream>