version 1.61.8.2, 2013/09/14 23:08:13
|
version 1.61.8.5, 2013/12/03 01:21:40
|
|
|
| |
ifeq ($(COMPILER), clang) | ifeq ($(COMPILER), clang) |
FLAGS += -W -Wall -Wno-unused-parameter -Wno-unused-value -D_GNU_SOURCE \ | FLAGS += -W -Wall -Wno-unused-parameter -Wno-unused-value -D_GNU_SOURCE \ |
-DTHREAD_SAFE -D_REENTRANT -Werror=unused-variable -Wno-unused-function |
-DTHREAD_SAFE -D_REENTRANT -Werror=unused-variable -Wno-unused-function \ |
|
-Werror=switch |
else | else |
FLAGS += -W -Wall -Wno-unused -Wunused-variable | FLAGS += -W -Wall -Wno-unused -Wunused-variable |
# Starting with gcc 4.3 specific warnings can be reported as error | # Starting with gcc 4.3 specific warnings can be reported as error |
# Enabling a specific selection of warnings to turn into errors | # Enabling a specific selection of warnings to turn into errors |
ifeq ($(shell expr $(GCC_VERSION) '>=' 4.3), 1) | ifeq ($(shell expr $(GCC_VERSION) '>=' 4.3), 1) |
FLAGS += -Werror=unused-variable | FLAGS += -Werror=unused-variable |
|
FLAGS += -Werror=switch |
endif | endif |
FLAGS += -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT | FLAGS += -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT |
endif | endif |
|
|
# appeared in the 3.0 series of compilers. | # appeared in the 3.0 series of compilers. |
# | # |
ifeq ($(COMPILER), gnu) | ifeq ($(COMPILER), gnu) |
|
# disable the strict aliasing |
ifeq ($(shell expr $(GCC_VERSION) '>=' 3.0), 1) | ifeq ($(shell expr $(GCC_VERSION) '>=' 3.0), 1) |
EXTRA_CXX_FLAGS += -fno-enforce-eh-specs |
PEGASUS_EXTRA_CXX_FLAGS += -fno-enforce-eh-specs -fno-strict-aliasing |
endif | endif |
endif | endif |
| |