Silence -Wcast-qual in glad.c.

git-svn-id: https://svn.eduke32.com/eduke32@6667 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-02-16 08:33:39 +00:00
parent 0c9b00e277
commit af69391c24

View file

@ -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