Build of sparc64 fails with: gl_draw.c: In function 'Draw_PicFromWad2': gl_draw.c:285: warning: array size (4) smaller than bound length (24) gl_draw.c:285: warning: array size (4) smaller than bound length (24) gl_draw.c: In function 'Draw_TryCachePic': gl_draw.c:354: warning: array size (4) smaller than bound length (24) gl_draw.c:354: warning: array size (4) smaller than bound length (24) gl_draw.c: In function 'Draw_MakePic':
Since it has -Werror, those warnings kill it. This patch drops -Werror and allows it to build on sparc64. ok? (cc maintainer) --Kurt Index: patches/patch-Quake_Makefile =================================================================== RCS file: /cvs/ports/games/vkquake/patches/patch-Quake_Makefile,v retrieving revision 1.3 diff -u -p -r1.3 patch-Quake_Makefile --- patches/patch-Quake_Makefile 29 Nov 2021 06:40:43 -0000 1.3 +++ patches/patch-Quake_Makefile 1 Mar 2022 00:36:57 -0000 @@ -5,6 +5,24 @@ remove hardcoded optimization flag Index: Quake/Makefile --- Quake/Makefile.orig +++ Quake/Makefile +@@ -28,7 +28,7 @@ VORBISLIB=vorbis + # Helper functions + # --------------------------- + +-check_gcc = $(shell if echo | $(CC) $(1) -Werror -S -o /dev/null -xc - > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;) ++check_gcc = $(shell if echo | $(CC) $(1) -S -o /dev/null -xc - > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;) + + # --------------------------- + +@@ -48,7 +48,7 @@ STRIP ?= strip + CPUFLAGS= + DFLAGS ?= + CFLAGS ?= +-CFLAGS += -Wall -Wno-trigraphs -Wno-unused-function -Werror -std=gnu99 ++CFLAGS += -Wall -Wno-trigraphs -Wno-unused-function -std=gnu99 + CFLAGS += $(CPUFLAGS) + ifneq ($(DEBUG),0) + DFLAGS += -D_DEBUG @@ -56,7 +56,6 @@ CFLAGS += -g do_strip= else