=================================================================== RCS file: /cvs/djgpp/djgpp/src/makefile.cfg,v retrieving revision 1.6 retrieving revision 1.7 diff -p -u -r1.6 -r1.7 --- djgpp/src/makefile.cfg 2015/05/11 11:00:14 1.6 +++ /cvs/djgpp/djgpp/src/makefile.cfg 2018/05/05 17:18:07 1.7 @@ -26,6 +26,12 @@ MTUNE := -mtune=i586 endif endif +ifeq ($(filter 2 3 4 5 6 7, $(GCC_MAJOR)),) +W_STRINGOP := -Wno-stringop-truncation -Wno-stringop-overflow +else +W_STRINGOP := +endif + config: gcc.opt gpp.opt gcc-l.opt gcc.opt: makefile.cfg @@ -45,6 +51,7 @@ gcc.opt: makefile.cfg @./misc.exe echo - "-Wwrite-strings" >>gcc.opt @./misc.exe echo - "-Wundef" >>gcc.opt @./misc.exe echo - "-Wcast-align" >>gcc.opt + @./misc.exe echo - "$(W_STRINGOP)" >>gcc.opt @./misc.exe echo - "-Wsign-compare" >>gcc.opt @./misc.exe echo - "-nostdinc" >>gcc.opt @./misc.exe echo - "$(IQUOTE)" >>gcc.opt