From af69391c249fa8020f39b3e7d596ca03f3366c49 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 16 Feb 2018 08:33:39 +0000 Subject: [PATCH] Silence -Wcast-qual in glad.c. git-svn-id: https://svn.eduke32.com/eduke32@6667 1a8010ca-5511-0410-912e-c29ae57300e0 --- GNUmakefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 0b269f11c..e250f9b97 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -129,6 +129,14 @@ glad_src := $(glad_root)/src glad_inc := $(glad_root)/include glad_obj := $(obj)/$(glad) +glad__no_cast_qual := -Wno-cast-qual +ifeq (4,$(GCC_MAJOR)) + ifneq (,$(filter 0 1 2 3 4,$(GCC_MINOR))) + glad__no_cast_qual := + endif +endif +glad_cflags := $(glad__no_cast_qual) + ifeq ($(RENDERTYPE),WIN) glad_objs += glad_wgl.c endif