Merge pull request #268763 from wegank/xnee-darwin

xnee: fix build with clang 16
This commit is contained in:
Weijia Wang 2023-11-21 03:10:57 +01:00 committed by GitHub
commit 5448ed6139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,12 @@ stdenv.mkDerivation (finalAttrs: {
"LDFLAGS=-lXi"
];
# error: call to undeclared function 'xnee_check_key';
# ISO C99 and later do not support implicit function declarations
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
# XXX: Actually tests require an X server.
doCheck = true;