Suppress warnings caused by including slicer headers in ti-stress
Slicer headers cause several warnings (and due to -Werror, errors) to be
sent by the compiler when we include them. We ignore these errors until
they can be fixed.
Bug: 65298177
Test: mma -j40
Change-Id: If1643ff99e07cd755d59e340584870b259b4c869
diff --git a/test/ti-stress/stress.cc b/test/ti-stress/stress.cc
index 4e0f48d..e809e9a 100644
--- a/test/ti-stress/stress.cc
+++ b/test/ti-stress/stress.cc
@@ -28,6 +28,10 @@
#include "jvmti.h"
#include "utils.h"
+#pragma clang diagnostic push
+// Slicer's headers have code that triggers these warnings. b/65298177
+#pragma clang diagnostic ignored "-Wunused-parameter"
+#pragma clang diagnostic ignored "-Wsign-compare"
#include "code_ir.h"
#include "control_flow_graph.h"
#include "dex_ir.h"
@@ -36,6 +40,8 @@
#include "reader.h"
#include "writer.h"
+#pragma clang diagnostic pop
+
namespace art {
// Should we do a 'full_rewrite' with this test?