diff --git a/make/solaris/makefiles/adlc.make b/make/solaris/makefiles/adlc.make index 88d9d2bc47635165b3a97bd06f78fcce18e3f7d2..ef87d3e7d8518234d849c4112ba933b8c2ecaee9 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")