Kaydet (Commit) e3061a19 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Drop -Wno-deprecated-declarations workaround

...for one, all supported GCC versions should HAVE_GCC_PRAGMA_OPERATOR by now;
for another, there are virtually no uses of std::auto_ptr left.

Change-Id: I5d94c2520d43ff0a4a8f6882ce64ebed888b44ec
üst 389beae2
...@@ -84,17 +84,6 @@ gb_CXXFLAGS += -fno-strict-aliasing ...@@ -84,17 +84,6 @@ gb_CXXFLAGS += -fno-strict-aliasing
endif endif
endif endif
#We have so many std::auto_ptr uses that we need to be able to disable
#warnings for those so that -Werror continues to be useful, seeing as moving
#to unique_ptr isn't an option when we must support different compilers
#
#When we are using 4.6.0 we can use gcc pragmas to selectively silence auto_ptr
#warnings in isolation, but for <= 4.5.X we need to globally disable
#deprecation
ifeq ($(HAVE_GCC_PRAGMA_OPERATOR),)
gb_CXXFLAGS += -Wno-deprecated-declarations
endif
ifneq ($(strip $(SYSBASE)),) ifneq ($(strip $(SYSBASE)),)
gb_CXXFLAGS += --sysroot=$(SYSBASE) gb_CXXFLAGS += --sysroot=$(SYSBASE)
gb_CFLAGS += --sysroot=$(SYSBASE) gb_CFLAGS += --sysroot=$(SYSBASE)
......
...@@ -80,17 +80,6 @@ gb_COMPILERDEFS += \ ...@@ -80,17 +80,6 @@ gb_COMPILERDEFS += \
endif endif
#We have so many std::auto_ptr uses that we need to be able to disable
#warnings for those so that -Werror continues to be useful, seeing as moving
#to unique_ptr isn't an option when we must support different compilers
#
#When we are using 4.6.0 we can use gcc pragmas to selectively silence auto_ptr
#warnings in isolation, but for <= 4.5.X we need to globally disable
#deprecation
ifeq ($(HAVE_GCC_PRAGMA_OPERATOR),)
gb_CXXFLAGS += -Wno-deprecated-declarations
endif
ifneq ($(strip $(SYSBASE)),) ifneq ($(strip $(SYSBASE)),)
gb_CXXFLAGS += --sysroot=$(SYSBASE) gb_CXXFLAGS += --sysroot=$(SYSBASE)
gb_CFLAGS += --sysroot=$(SYSBASE) gb_CFLAGS += --sysroot=$(SYSBASE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment