File gcc-15.patch of Package nvidia-gfxG05

diff -u -r -p NVIDIA-Linux-x86_64-470.256.02.old/kernel/Kbuild NVIDIA-Linux-x86_64-470.256.02/kernel/Kbuild
--- NVIDIA-Linux-x86_64-470.256.02.old/kernel/Kbuild	2025-06-17 20:54:39.581950242 +0200
+++ NVIDIA-Linux-x86_64-470.256.02/kernel/Kbuild	2025-06-17 20:55:35.323107703 +0200
@@ -59,6 +59,7 @@ $(foreach _module, $(NV_KERNEL_MODULES),
  $(eval include $(src)/$(_module)/$(_module).Kbuild))
 
 
+ccflags-y += -std=gnu17
 ccflags-y += -I$(src)/common/inc
 ccflags-y += -I$(src)
 ccflags-y += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-format-extra-args
diff -u -r -p NVIDIA-Linux-x86_64-470.256.02.old/kernel/conftest.sh NVIDIA-Linux-x86_64-470.256.02/kernel/conftest.sh
--- NVIDIA-Linux-x86_64-470.256.02.old/kernel/conftest.sh	2025-06-17 20:54:39.581950242 +0200
+++ NVIDIA-Linux-x86_64-470.256.02/kernel/conftest.sh	2025-06-17 20:56:49.324644345 +0200
@@ -99,7 +99,7 @@ test_header_presence() {
 }
 
 build_cflags() {
-    BASE_CFLAGS="-O2 -D__KERNEL__ \
+    BASE_CFLAGS="-std=gnu17 -O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
 -nostdinc -isystem $ISYSTEM -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
 
openSUSE Build Service is sponsored by