diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-06 14:33:54 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-04-06 14:33:54 -0700 |
commit | ba1ff84da2b7799c64f18cc72e2715b88b887fcc (patch) | |
tree | 45f9c54971517efd5ad71dc6545a81974fedcd7f /sigchainlib | |
parent | c6ec8679209b37e7c8143c2680d85b2ca640a353 (diff) | |
download | art-ba1ff84da2b7799c64f18cc72e2715b88b887fcc.zip art-ba1ff84da2b7799c64f18cc72e2715b88b887fcc.tar.gz art-ba1ff84da2b7799c64f18cc72e2715b88b887fcc.tar.bz2 |
ART: Fix no-return in sigchainlib
Ignore warning in sigchain_dummy.
Change-Id: I2c9ed93c0125d06b6a3d4011a794b062cf1c4093
Diffstat (limited to 'sigchainlib')
-rw-r--r-- | sigchainlib/sigchain_dummy.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sigchainlib/sigchain_dummy.cc b/sigchainlib/sigchain_dummy.cc index 76779ab..70a4f71 100644 --- a/sigchainlib/sigchain_dummy.cc +++ b/sigchainlib/sigchain_dummy.cc @@ -28,6 +28,11 @@ #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 |