nvidia-all/patches/gcc-14-470.diff
Tk-Glitch dae9454b8c Add GCC14 fixup patches for older branches
It shouldn't break anything on current but it also shouldn't be necessary, so disable by default

Fix for https://github.com/Frogging-Family/nvidia-all/issues/236
2024-05-21 18:44:14 +02:00

14 lines
543 B
Diff

diff --git a/kernel-dkms/conftest.sh b/kernel-dkms/conftest.sh
--- a/kernel-dkms/conftest.sh
+++ b/kernel-dkms/conftest.sh
@@ -100,7 +100,8 @@ test_headers() {
build_cflags() {
BASE_CFLAGS="-O2 -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM \
+-Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"
if [ "$OUTPUT" != "$SOURCES" ]; then
OUTPUT_CFLAGS="-I$OUTPUT/include2 -I$OUTPUT/include"