selinux/libselinux/utils
Nicolas Iooss 40543dceed libselinux: silence -Wextra-semi-stmt warning
On Ubuntu 20.04, when building with clang -Werror -Wextra-semi-stmt
(which is not the default build configuration), the compiler reports:

      sha1.c:90:21: error: empty expression statement has no effect;
      remove unnecessary ';' to silence this warning
      [-Werror,-Wextra-semi-stmt]
          R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3);
                          ^
      In file included from selinux_restorecon.c:39:
      ./label_file.h:458:15: error: empty expression statement has no
      effect; remove unnecessary ';' to silence this warning
      [-Werror,-Wextra-semi-stmt]
                                  lineno);
                                        ^

Introduce "do { } while (0)" blocks to silence such warnings.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2021-07-06 11:08:11 -04:00
..
.gitignore libselinux: Save digest of all partial matches for directory 2019-07-27 10:39:24 +02:00
avcstat.c libselinux: avcstat: use standard length modifier for unsigned long long 2021-05-18 10:06:22 +02:00
compute_av.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
compute_create.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
compute_member.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
compute_relabel.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
getconlist.c libselinux: getconlist: free memory on multiple level arguments 2021-05-18 10:06:22 +02:00
getdefaultcon.c libselinux: getdefaultcon: free memory on multiple same arguments 2021-05-18 10:06:22 +02:00
getenforce.c libselinux: use -W and -Werror in utils 2011-12-05 16:14:17 -05:00
getfilecon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
getpidcon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
getsebool.c libselinux: getsebool: always free names 2017-04-12 14:46:02 -04:00
getseuser.c libselinux/utils/getseuser.c: fix build with gcc 4.8 2021-07-03 16:00:38 +02:00
Makefile libselinux: convert matchpathcon to selabel_lookup() 2020-10-14 17:57:26 +02:00
matchpathcon.c libselinux: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
policyvers.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
sefcontext_compile.c libselinux: sefcontext_compile: mark local variable static 2021-05-18 10:06:22 +02:00
selabel_digest.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
selabel_get_digests_all_partial_matches.c libselinux: selabel_get_digests_all_partial_matches: free memory after FTS_D block 2021-05-18 10:06:22 +02:00
selabel_lookup_best_match.c libselinux: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
selabel_lookup.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
selabel_partial_match.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
selinux_check_access.c libselinux/utils: add noreturn attribute to selinux_check_access's usage 2017-05-05 13:07:04 -04:00
selinux_check_securetty_context.c libselinux: include errno.h instead of sys/errno.h 2017-01-09 16:00:22 -05:00
selinuxenabled.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinuxexeccon.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
setenforce.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
setfilecon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
togglesebool.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
validatetrans.c Add security_validatetrans support 2019-04-09 06:51:02 -07:00