Compile with -Werror, so Jenkins will catch warnings
authorDave Barach <[email protected]>
Wed, 10 Feb 2016 14:13:23 +0000 (09:13 -0500)
committerDave Barach <[email protected]>
Wed, 10 Feb 2016 14:14:36 +0000 (09:14 -0500)
Change-Id: I9255c75b6c6cbc638cdcc411632a924cb06f28c0
Signed-off-by: Dave Barach <[email protected]>
build-data/platforms/vpp.mk
vnet/vnet/devices/dpdk/vhost_user.c

index 4c75d74..555147d 100644 (file)
@@ -28,11 +28,11 @@ vlib_configure_args_vpp = --with-pre-data=128
 
 
 vpp_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
-       -fstack-protector-all -fPIC
+       -fstack-protector-all -fPIC -Werror
 vpp_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
-       -fstack-protector-all -fPIC
+       -fstack-protector-all -fPIC -Werror
 
 vpp_TAG_CFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -march=$(MARCH) \
-       -fstack-protector -fPIC
+       -fstack-protector -fPIC -Werror
 vpp_TAG_LDFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -march=$(MARCH) \
-       -fstack-protector -fPIC
+       -fstack-protector -fPIC -Werror
index d6ed35f..91734e2 100644 (file)
@@ -39,7 +39,7 @@
 #define DBG_SOCK(args...)
 #endif
 
-static const char *vhost_message_str[] = {
+static const char *vhost_message_str[] __attribute__((unused)) = {
     [VHOST_USER_NONE] = "VHOST_USER_NONE",
     [VHOST_USER_GET_FEATURES] = "VHOST_USER_GET_FEATURES",
     [VHOST_USER_SET_FEATURES] = "VHOST_USER_SET_FEATURES",