From: <sv...@op...> - 2024-08-12 10:50:05
|
Author: manx Date: Mon Aug 12 12:49:53 2024 New Revision: 21382 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21382 Log: [Imp] build: Makefile: Add back ANCIENT=1 optio to support older compilers with missing command line options. Modified: trunk/OpenMPT/build/make/warnings-clang.mk Modified: trunk/OpenMPT/build/make/warnings-clang.mk ============================================================================== --- trunk/OpenMPT/build/make/warnings-clang.mk Mon Aug 12 11:55:14 2024 (r21381) +++ trunk/OpenMPT/build/make/warnings-clang.mk Mon Aug 12 12:49:53 2024 (r21382) @@ -2,8 +2,13 @@ CXXFLAGS_WARNINGS += -Wcast-align -Wcast-qual -Wdouble-promotion -Wfloat-conversion -Wmissing-prototypes -Wshift-count-negative -Wshift-count-overflow -Wshift-op-parentheses -Wshift-overflow -Wshift-sign-overflow -Wundef CFLAGS_WARNINGS += -Wcast-align -Wcast-qual -Wdouble-promotion -Wfloat-conversion -Wmissing-prototypes -Wshift-count-negative -Wshift-count-overflow -Wshift-op-parentheses -Wshift-overflow -Wshift-sign-overflow -Wundef -CXXFLAGS_WARNINGS += -Wdeprecated -Wexit-time-destructors -Wextra-semi -Wframe-larger-than=16000 -Wglobal-constructors -Wimplicit-fallthrough -Wmissing-declarations -Wnon-virtual-dtor -Wreserved-id-macro -CFLAGS_WARNINGS += -Wframe-larger-than=4000 +CXXFLAGS_WARNINGS += -Wdeprecated -Wexit-time-destructors -Wextra-semi -Wglobal-constructors -Wimplicit-fallthrough -Wmissing-declarations -Wnon-virtual-dtor -Wreserved-id-macro +CFLAGS_WARNINGS += + +ifneq ($(ANCIENT),1) +CXXFLAGS_WARNINGS += -Wframe-larger-than=16000 +CFLAGS_WARNINGS += -Wframe-larger-than=4000 +endif #CXXFLAGS_WARNINGS += -Wfloat-equal #CXXFLAGS_WARNINGS += -Wdocumentation @@ -29,4 +34,10 @@ CFLAGS_SILENT += -Wno-unused-parameter CFLAGS_SILENT += -Wno-unused-variable +ifneq ($(ANCIENT),1) +CFLAGS_SILENT += -Wno-unused-but-set-variable +endif + + + FASTMATH_STYLE=clang |