From 1803671166be740898873816dc9805f73a7cd419 Mon Sep 17 00:00:00 2001 From: Ji You Date: Tue, 14 Aug 2018 23:33:37 -0700 Subject: [PATCH] examples/Makefile: add -Wno-unused-parameter to avoid compile error Signed-off-by: You Ji --- examples/librados/Makefile | 4 ++-- examples/librbd/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/librados/Makefile b/examples/librados/Makefile index e51c045a65d5d..fd61cb9980320 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 c794c51dc8b28..2cd9f269aa8f3 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) -- 2.39.5