From 5a3a0dec8e33e75cefd41035b4f44f0ee16b78ad Mon Sep 17 00:00:00 2001 From: erikj Date: Fri, 28 Aug 2015 09:57:54 +0200 Subject: [PATCH] 8134157: adlc fails to compile with SS12u4 Reviewed-by: dholmes, kbarrett, ihse --- make/solaris/makefiles/adlc.make | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/solaris/makefiles/adlc.make b/make/solaris/makefiles/adlc.make index 88d9d2bc4..ef87d3e7d 100644 --- a/make/solaris/makefiles/adlc.make +++ b/make/solaris/makefiles/adlc.make @@ -76,6 +76,11 @@ endif ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) CFLAGS_WARN = +w -errwarn endif +# When using compiler version 5.13 (Solaris Studio 12.4), calls to explicitly +# instantiated template functions trigger this warning when +w is active. +ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 513), 1) + CFLAGS_WARN += -erroff=notemsource +endif CFLAGS += $(CFLAGS_WARN) ifeq ("${Platform_compiler}", "sparcWorks") -- GitLab