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
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
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
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
selabel_partial_match.c
selinux_check_access.c
selinux_check_securetty_context.c
selinuxenabled.c
selinuxexeccon.c
setenforce.c
setfilecon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
togglesebool.c
validatetrans.c