aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/utils/togglesebool.c
diff options
context:
space:
mode:
authorWilliam Roberts <william.c.roberts@intel.com>2016-11-01 14:23:10 -0700
committerStephen Smalley <sds@tycho.nsa.gov>2016-11-01 17:29:49 -0400
commite4f2bcce24181131014dc18d3f948e7e2a65d6cc (patch)
tree1815eaf23f28abb609ad90a45f46634b9ec30a4a /libselinux/utils/togglesebool.c
parent4c519cd73031a7c1711d87801be11c716e887d44 (diff)
downloadandroid_external_selinux-e4f2bcce24181131014dc18d3f948e7e2a65d6cc.tar.gz
android_external_selinux-e4f2bcce24181131014dc18d3f948e7e2a65d6cc.tar.bz2
android_external_selinux-e4f2bcce24181131014dc18d3f948e7e2a65d6cc.zip
libselinux/utils: fix all the noreturn errors
When building with clang, multiple noreturn issues arise, for instance: selabel_partial_match.c:11:1: error: function 'usage' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn] Fix these. Signed-off-by: William Roberts <william.c.roberts@intel.com>
Diffstat (limited to 'libselinux/utils/togglesebool.c')
-rw-r--r--libselinux/utils/togglesebool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libselinux/utils/togglesebool.c b/libselinux/utils/togglesebool.c
index 309f83b1..4a7c830e 100644
--- a/libselinux/utils/togglesebool.c
+++ b/libselinux/utils/togglesebool.c
@@ -10,7 +10,7 @@
/* Attempt to rollback the transaction. No need to check error
codes since this is rolling back something that blew up. */
-static void rollback(int argc, char **argv)
+static __attribute__ ((__noreturn__)) void rollback(int argc, char **argv)
{
int i;