summaryrefslogtreecommitdiffstats
path: root/patchoat
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-10-10 20:05:39 -0700
committerIan Rogers <irogers@google.com>2014-10-10 20:05:39 -0700
commit7223d44a4893522e90d00bca38b119f710e55122 (patch)
treec0bbe3f7b3cf04750b4b5359a03c2d63fc90978b /patchoat
parent3f5b8a1e7dfdf010591e17396d1d126740c5706c (diff)
downloadart-7223d44a4893522e90d00bca38b119f710e55122.tar.gz
art-7223d44a4893522e90d00bca38b119f710e55122.tar.bz2
art-7223d44a4893522e90d00bca38b119f710e55122.zip
Switch to C++11 style [[noreturn]].
Also remove old comment about calls to Abort getting merged. We have few LOG(FATAL)s so merging is less of an issue. Also, recompiling with O0 and similar will avoid the optimization and we expect that for GDB debugging. Change-Id: I840dc6f4b8511294be0e117c634ec15b745e7be5
Diffstat (limited to 'patchoat')
-rw-r--r--patchoat/patchoat.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc
index 2d165b05da..4ed428c200 100644
--- a/patchoat/patchoat.cc
+++ b/patchoat/patchoat.cc
@@ -644,8 +644,7 @@ static void UsageError(const char* fmt, ...) {
va_end(ap);
}
-static void Usage(const char *fmt, ...) NO_RETURN;
-static void Usage(const char *fmt, ...) {
+[[noreturn]] static void Usage(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
UsageErrorV(fmt, ap);