selinux/libsepol
Nicolas Iooss 32f8ed3d6b libsepol/cil: introduce intermediate cast to silence -Wvoid-pointer-to-enum-cast
clang 11.0.0 reports the following warning several times (when building
with "make CC=clang" from libsepol directory, in the default
configuration of the git repository):

    ../cil/src/cil_binary.c:1980:8: error: cast to smaller integer type
    'enum cil_flavor' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]
                    op = (enum cil_flavor)curr->data;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Silence this warning by casting the pointer to an integer the cast to
enum cil_flavor.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2021-02-16 09:30:57 -05:00
..
cil libsepol/cil: introduce intermediate cast to silence -Wvoid-pointer-to-enum-cast 2021-02-16 09:30:57 -05:00
include libsepol: remove unused files 2021-02-05 10:19:30 +01:00
man selinux: Update manpages after removing legacy boolean and user code 2019-07-29 23:46:47 +02:00
src libsepol: include header files in source files when matching declarations 2021-02-05 10:19:34 +01:00
tests libsepol/tests: drop ncurses dependency 2020-05-04 10:31:44 +02:00
utils
.gitignore
COPYING
Makefile
VERSION Update VERSIONs to 3.2-rc2 for release. 2021-02-03 11:26:28 +01:00