Linux: refine warning suppression

groff 1.23 is known to have the issue
This commit is contained in:
nhmall
2023-10-30 16:20:49 -04:00
parent f42108d255
commit a70cae04a3

View File

@@ -337,8 +337,18 @@ VARDIRPERM = 0755
VARFILEPERM = 0600
GAMEPERM = 0755
# suppress several hundred warnings with recent *roff
# suppress several hundred warnings with groff 1.23
#detection of groff
NROFFISGROFF := $(shell echo `nroff --version | grep "GNU groff version"`)
#$(info NROFFISGROFF=$(NROFFISGROFF))
ifneq "$(NROFFISGROFF)" ""
# get the version of groff
GROFFGE123 := $(shell expr `echo $(NROFFISGROFF) | cut -f2 -d.` \>= 23)
#$(info GROFFGE123=$(GROFFGE123))
ifeq "$(GROFFGE123)" "1"
NROFF_FLAGS = -W font
endif
endif # NROFFISGROFF
#
#-INCLUDE cross-pre.370