changeset 8637:9d85c3e90648

8134157: adlc fails to compile with SS12u4 Reviewed-by: dholmes, kbarrett, ihse
author erikj
date Fri, 28 Aug 2015 09:57:54 +0200
parents cb0b95b67cb2
children fd0ca2c1433b
files make/solaris/makefiles/adlc.make
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/solaris/makefiles/adlc.make	Mon Apr 23 02:05:50 2018 -0700
+++ b/make/solaris/makefiles/adlc.make	Fri Aug 28 09:57:54 2015 +0200
@@ -76,6 +76,11 @@
 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")