OSDN Git Service

ART: Fix no-return in sigchainlib
authorAndreas Gampe <agampe@google.com>
Mon, 6 Apr 2015 21:33:54 +0000 (14:33 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 6 Apr 2015 21:33:54 +0000 (14:33 -0700)
Ignore warning in sigchain_dummy.

Change-Id: I2c9ed93c0125d06b6a3d4011a794b062cf1c4093

sigchainlib/sigchain_dummy.cc

index 76779ab..70a4f71 100644 (file)
 
 #define ATTRIBUTE_UNUSED __attribute__((__unused__))
 
+// We cannot annotate the declarations, as they are not no-return in the non-dummy version.
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#pragma GCC diagnostic ignored "-Wmissing-noreturn"
+
 static void log(const char* format, ...) {
   char buf[256];
   va_list ap;
@@ -73,4 +78,6 @@ extern "C" void EnsureFrontOfChain(int signal ATTRIBUTE_UNUSED,
   abort();
 }
 
+#pragma GCC diagnostic pop
+
 }  // namespace art