@@ -19,7 +19,13 @@ stdenv.mkDerivation rec {
1919 buildInputs = [ pkgconfig libsepol pcre ]
2020 ++ optionals enablePython [ swig python ];
2121
22− NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
22+ # Avoid this false warning:
23+ # avc_internal.c: In function 'avc_netlink_receive':
24+ # avc_internal.c:105:25: error: cast increases required alignment of target type [-Werror=cast-align]
25+ # struct nlmsghdr *nlh = (struct nlmsghdr *)buf;
26+ # ^
27+
28+ NIX_CFLAGS_COMPILE = "-std=gnu89 -Wno-error=cast-align";
2329
2430 # Unreleased upstream patch that fixes Python package issue arising
2531 # from recent SWIG changes.