Skip to content

Commit

Permalink
examples/Makefile: add -Wno-unused-parameter to avoid compile error
Browse files Browse the repository at this point in the history
Signed-off-by: You Ji <youji@ebay.com>
  • Loading branch information
JiYou committed Aug 16, 2018
1 parent 4cf9e35 commit 1803671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/librados/Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion examples/librbd/Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 1803671

Please sign in to comment.