diff options
author | William Roberts <william.c.roberts@intel.com> | 2016-11-01 14:23:10 -0700 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2016-11-01 17:29:49 -0400 |
commit | e4f2bcce24181131014dc18d3f948e7e2a65d6cc (patch) | |
tree | 1815eaf23f28abb609ad90a45f46634b9ec30a4a /libselinux/utils/getsebool.c | |
parent | 4c519cd73031a7c1711d87801be11c716e887d44 (diff) | |
download | android_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/getsebool.c')
-rw-r--r-- | libselinux/utils/getsebool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libselinux/utils/getsebool.c b/libselinux/utils/getsebool.c index 9ae92430..3c6eba55 100644 --- a/libselinux/utils/getsebool.c +++ b/libselinux/utils/getsebool.c @@ -6,7 +6,7 @@ #include <string.h> #include <selinux/selinux.h> -static void usage(const char *progname) +static __attribute__ ((__noreturn__)) void usage(const char *progname) { fprintf(stderr, "usage: %s -a or %s boolean...\n", progname, progname); exit(1); |