Subzero: Fix g++ warnings.

This tries to use the same -W options that the buildbots use, to reduce the amount of warning spam in the logs.

BUG= none
R=jpp@chromium.org

Review URL: https://codereview.chromium.org/1575873006 .
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp
index e976a8b..0907167 100644
--- a/src/IceConverter.cpp
+++ b/src/IceConverter.cpp
@@ -26,8 +26,11 @@
 #include "IceTypes.h"
 #include "IceTypeConverter.h"
 
+#ifdef __clang__
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wunused-parameter"
+#endif // __clang__
+
 #include "llvm/IR/Constant.h"
 #include "llvm/IR/Constants.h"
 #include "llvm/IR/DataLayout.h"
@@ -35,7 +38,10 @@
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/Module.h"
+
+#ifdef __clang__
 #pragma clang diagnostic pop
+#endif // __clang__
 
 // TODO(kschimpf): Remove two namespaces being visible at once.
 using namespace llvm;