summaryrefslogtreecommitdiffstats
path: root/examples/librados
diff options
context:
space:
mode:
authorJi You <youji@ebay.com>2018-08-15 08:33:37 +0200
committerJi You <youji@ebay.com>2018-08-16 03:20:17 +0200
commit1803671166be740898873816dc9805f73a7cd419 (patch)
tree655173dae879bf5372164a4d8564e44b104d5d65 /examples/librados
parentMerge pull request #23564 from falcon78921/wip-docs-links-1 (diff)
downloadceph-1803671166be740898873816dc9805f73a7cd419.tar.xz
ceph-1803671166be740898873816dc9805f73a7cd419.zip
examples/Makefile: add -Wno-unused-parameter to avoid compile error
Signed-off-by: You Ji <youji@ebay.com>
Diffstat (limited to 'examples/librados')
-rw-r--r--examples/librados/Makefile4
1 files changed, 2 insertions, 2 deletions
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)