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/IceCompiler.cpp b/src/IceCompiler.cpp
index ff17d84..7764b71 100644
--- a/src/IceCompiler.cpp
+++ b/src/IceCompiler.cpp
@@ -23,12 +23,16 @@
#include "IceConverter.h"
#include "IceELFObjectWriter.h"
#include "PNaClTranslator.h"
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-parameter"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IRReader/IRReader.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/StreamingMemoryObject.h"
+#pragma clang diagnostic pop
namespace Ice {