summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-07 14:35:55 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-07 14:35:55 +0000
commit0aee9266302ab699584f5d75198beba54724115a (patch)
treee745cca7c54ed23e1ec82686fb2a19fbe75afec0
parenteac3f64ca82638817f9d4390d3db582962de1c57 (diff)
downloadATCD-0aee9266302ab699584f5d75198beba54724115a.tar.gz
disable warning 1016 when optimization is enabled
-rw-r--r--include/makeinclude/platform_osf1_4.0.GNU9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/makeinclude/platform_osf1_4.0.GNU b/include/makeinclude/platform_osf1_4.0.GNU
index e5f3bd68d73..9526765dcd2 100644
--- a/include/makeinclude/platform_osf1_4.0.GNU
+++ b/include/makeinclude/platform_osf1_4.0.GNU
@@ -17,8 +17,14 @@ ifndef CXX_VERSION
CXX_VERSION := $(shell $(CXX) -V)
endif # CXX_VERSION
+CXX_1016 =
CXX_1136 =
CXX_1180 =
+
+ifneq (,$(optimize))
+ CXX_1016 = ,1016
+endif # optimize
+
#### 6.1-029 and later support msg 1136. We disable it by default.
ifneq (6.0-,$(findstring 6.0-,$(CXX_VERSION)))
ifeq (6.1-,$(findstring 6.1-,$(CXX_VERSION)))
@@ -45,12 +51,13 @@ endif # ! 6.0
# 610: nonoverriding_function_decl
# 835: unreferenced_function_param
# 839: no_corresponding_delete (until this is fixed in libTAO)
+# 1016: expected type is incompatible with declared type of int (in bzero ())
# 1136: conversion to integral type of smaller size could lose data
# 1180: statement causes unreachable return
ifneq ($(CXX_VER),CXX_5)
WARNING_FLAGS += -w0 -msg_display_number
WARNING_FLAGS += \
- -msg_disable 9,174,193,236,401,610,835,839$(CXX_1136)$(CXX_1180)
+ -msg_disable 9,174,193,236,401,610,835,839$(CXX_1016)$(CXX_1136)$(CXX_1180)
endif # 6.0 or later
CCFLAGS += $(CFLAGS) -ptr ptrepository $(WARNING_FLAGS)