73 |
73 |
74 # CFLAGS_WARN holds compiler options to suppress/enable warnings. |
74 # CFLAGS_WARN holds compiler options to suppress/enable warnings. |
75 # Compiler warnings are treated as errors |
75 # Compiler warnings are treated as errors |
76 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) |
76 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) |
77 CFLAGS_WARN = +w -errwarn |
77 CFLAGS_WARN = +w -errwarn |
|
78 endif |
|
79 # When using compiler version 5.13 (Solaris Studio 12.4), calls to explicitly |
|
80 # instantiated template functions trigger this warning when +w is active. |
|
81 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 513), 1) |
|
82 CFLAGS_WARN += -erroff=notemsource |
78 endif |
83 endif |
79 CFLAGS += $(CFLAGS_WARN) |
84 CFLAGS += $(CFLAGS_WARN) |
80 |
85 |
81 ifeq ("${Platform_compiler}", "sparcWorks") |
86 ifeq ("${Platform_compiler}", "sparcWorks") |
82 # Enable the following CFLAGS addition if you need to compare the |
87 # Enable the following CFLAGS addition if you need to compare the |