This is an automated email from the ASF dual-hosted git repository. guangmingchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push: new d79f0d31 [#2740] fix example/rdma_performance compilation error (#2741) d79f0d31 is described below commit d79f0d3136e8d194d9f36513303ec1b6982266d5 Author: Allen <ivan_al...@163.com> AuthorDate: Thu Aug 22 17:48:51 2024 +0800 [#2740] fix example/rdma_performance compilation error (#2741) Co-authored-by: ivanallen <ivanal...@qq.com> --- example/rdma_performance/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/rdma_performance/Makefile b/example/rdma_performance/Makefile index 9e3e2627..60c59702 100644 --- a/example/rdma_performance/Makefile +++ b/example/rdma_performance/Makefile @@ -21,7 +21,7 @@ include $(BRPC_PATH)/config.mk # Notes on the flags: # 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 -CXXFLAGS+=$(CPPFLAGS) -std=c++0x -DNDEBUG -O2 -D__const__= -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer +CXXFLAGS+=$(CPPFLAGS) -std=c++0x -DNDEBUG -O2 -D__const__=__unused__ -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer ifeq ($(NEED_GPERFTOOLS), 1) CXXFLAGS+=-DBRPC_ENABLE_CPU_PROFILER endif @@ -95,4 +95,5 @@ endif %.o:%.cc @echo "> Compiling $@" - $(CXX) -c $(HDRPATHS) $(CXXFLAGS) $< -o $@ \ No newline at end of file + $(CXX) -c $(HDRPATHS) $(CXXFLAGS) $< -o $@ + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org