Commit 60581f05 authored by zhujiashun's avatar zhujiashun

redis_server_protocol: remove Werror in thrift example

parent dbde032d
...@@ -21,7 +21,7 @@ include $(BRPC_PATH)/config.mk ...@@ -21,7 +21,7 @@ include $(BRPC_PATH)/config.mk
# Notes on the flags: # Notes on the flags:
# 1. Added -fno-omit-frame-pointer: perf/tcmalloc-profiler use frame pointers by default # 1. Added -fno-omit-frame-pointer: perf/tcmalloc-profiler use frame pointers by default
# 2. Added -D__const__= : Avoid over-optimizations of TLS variables by GCC>=4.8 # 2. Added -D__const__= : Avoid over-optimizations of TLS variables by GCC>=4.8
CXXFLAGS = $(CPPFLAGS) -std=c++0x -g -DNDEBUG -O2 -D__const__= -pipe -W -Wall -Werror -Wno-unused-parameter -fPIC -fno-omit-frame-pointer CXXFLAGS = $(CPPFLAGS) -std=c++0x -g -DNDEBUG -O2 -D__const__= -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer
ifeq ($(NEED_GPERFTOOLS), 1) ifeq ($(NEED_GPERFTOOLS), 1)
CXXFLAGS+=-DBRPC_ENABLE_CPU_PROFILER CXXFLAGS+=-DBRPC_ENABLE_CPU_PROFILER
endif endif
......
...@@ -128,7 +128,7 @@ public: ...@@ -128,7 +128,7 @@ public:
void Print(std::ostream&) const; void Print(std::ostream&) const;
protected: protected:
::google::protobuf::Metadata GetMetadata() const; ::google::protobuf::Metadata GetMetadata() const override;
private: private:
void SharedCtor(); void SharedCtor();
......
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