From: Ji You Date: Wed, 15 Aug 2018 06:33:37 +0000 (-0700) Subject: examples/Makefile: add -Wno-unused-parameter to avoid compile error X-Git-Tag: v14.0.1~584^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1803671166be740898873816dc9805f73a7cd419;p=ceph.git examples/Makefile: add -Wno-unused-parameter to avoid compile error Signed-off-by: You Ji --- diff --git a/examples/librados/Makefile b/examples/librados/Makefile index e51c045a65d..fd61cb99803 100644 --- a/examples/librados/Makefile +++ b/examples/librados/Makefile @@ -1,12 +1,12 @@ CXX?=g++ -CXX_FLAGS?=-std=c++11 -Wall -Wextra -Werror -g +CXX_FLAGS?=-std=c++11 -Wno-unused-parameter -Wall -Wextra -Werror -g CXX_LIBS?=-lrados -lradosstriper CXX_INC?=$(LOCAL_LIBRADOS_INC) CXX_CC=$(CXX) $(CXX_FLAGS) $(CXX_INC) $(LOCAL_LIBRADOS) CC?=gcc -CC_FLAGS=-Wall -Wextra -Werror -g +CC_FLAGS=-Wno-unused-parameter -Wall -Wextra -Werror -g CC_INC=$(LOCAL_LIBRADOS_INC) CC_LIBS?=-lrados CC_CC=$(CC) $(CC_FLAGS) $(CC_INC) $(LOCAL_LIBRADOS) diff --git a/examples/librbd/Makefile b/examples/librbd/Makefile index c794c51dc8b..2cd9f269aa8 100644 --- a/examples/librbd/Makefile +++ b/examples/librbd/Makefile @@ -1,6 +1,6 @@ CXX?=g++ -CXX_FLAGS?=-std=c++11 -Wall -Wextra -Werror -g +CXX_FLAGS?=-std=c++11 -Wno-unused-parameter -Wall -Wextra -Werror -g CXX_LIBS?=-lboost_system -lrbd -lrados CXX_INC?=$(LOCAL_LIBRADOS_INC) CXX_CC=$(CXX) $(CXX_FLAGS) $(CXX_INC) $(LOCAL_LIBRADOS)