diff mbox series

libcody: Work with older gccs

Message ID 2f596517-43fc-46d4-828e-654be65852f5@acm.org
State New
Headers show
Series libcody: Work with older gccs | expand

Commit Message

Nathan Sidwell Dec. 15, 2020, 9:37 p.m. UTC
Older GCCs don't have all the exciting options we have now.  let's just 
turn them off.

             Makefile.in: Disable some flags
diff mbox series

Patch

From 98b960b40ba4934bdbd8d87d9432475e148d1022 Mon Sep 17 00:00:00 2001
From: Nathan Sidwell <nathan@acm.org>
Date: Tue, 15 Dec 2020 13:34:26 -0800
Subject: [PATCH] libcody:  Work with older gccs

Older GCCs don't have all the exciting options we have now.  let's just
turn them off.

	Makefile.in: Disable some flags
---
 libcody/Makefile.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libcody/Makefile.in b/libcody/Makefile.in
index 7b8a6418027..4b457adc3a4 100644
--- a/libcody/Makefile.in
+++ b/libcody/Makefile.in
@@ -66,7 +66,10 @@  ifeq ($(filter -fdebug-prefix-map=%,$(CXXOPTS)),)
 CXXOPTS += -fdebug-prefix-map=${srcdir}/=
 endif
 # Warning options
-CXXOPTS += -W -Wall -Woverloaded-virtual -Wshadow
+CXXOPTS += -W -Wall
+ifeq (no,)
+# just turn off for now
+CXXOPTS += -Woverloaded-virtual -Wshadow
 CXXOPTS += -Wno-invalid-offsetof -Wno-unused-variable
 CXXOPTS += -Wno-missing-field-initializers
 # Diagnostic options, look at controlling terminal so that piping
@@ -76,6 +79,7 @@  ifneq (,$(MLEN))
 CXXOPTS += -fmessage-length=$(MLEN)
 endif
 CXXOPTS += -fdiagnostics-color=always -fno-diagnostics-show-option
+endif
 else
 ifeq ($(notdir $(firstword $(CXX))),clang++)
 CXXOPTS += -fno-stack-protector -fno-threadsafe-statics
-- 
2.27.0