From: Matthew Hall <mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: [PATCH 3/4] examples/*: -Wno-switch required for weird ioctl() ID's
Date: Sun, 20 Jul 2014 20:47:40 -0700 [thread overview]
Message-ID: <1405914461-19335-4-git-send-email-mhall@mhcomputing.net> (raw)
In-Reply-To: <1405914461-19335-1-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
Signed-off-by: Matthew Hall <mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
---
examples/multi_process/client_server_mp/mp_client/Makefile | 1 +
examples/multi_process/client_server_mp/mp_server/Makefile | 1 +
examples/multi_process/l2fwd_fork/Makefile | 1 +
examples/multi_process/simple_mp/Makefile | 1 +
examples/multi_process/symmetric_mp/Makefile | 1 +
examples/netmap_compat/Makefile | 2 ++
examples/netmap_compat/bridge/Makefile | 1 +
examples/vhost/Makefile | 1 +
8 files changed, 9 insertions(+)
diff --git a/examples/multi_process/client_server_mp/mp_client/Makefile b/examples/multi_process/client_server_mp/mp_client/Makefile
index 2688fed..ba2481d 100644
--- a/examples/multi_process/client_server_mp/mp_client/Makefile
+++ b/examples/multi_process/client_server_mp/mp_client/Makefile
@@ -43,6 +43,7 @@ APP = mp_client
SRCS-y := client.c
CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += -Wno-switch
CFLAGS += -I$(SRCDIR)/../shared
include $(RTE_SDK)/mk/rte.extapp.mk
diff --git a/examples/multi_process/client_server_mp/mp_server/Makefile b/examples/multi_process/client_server_mp/mp_server/Makefile
index c29e478..bf96c30 100644
--- a/examples/multi_process/client_server_mp/mp_server/Makefile
+++ b/examples/multi_process/client_server_mp/mp_server/Makefile
@@ -52,6 +52,7 @@ SRCS-y := main.c init.c args.c
INC := $(wildcard *.h)
CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += -Wno-switch
CFLAGS += -I$(SRCDIR)/../shared
# for newer gcc, e.g. 4.4, no-strict-aliasing may not be necessary
diff --git a/examples/multi_process/l2fwd_fork/Makefile b/examples/multi_process/l2fwd_fork/Makefile
index ff257a3..2c5a808 100644
--- a/examples/multi_process/l2fwd_fork/Makefile
+++ b/examples/multi_process/l2fwd_fork/Makefile
@@ -46,5 +46,6 @@ SRCS-y := main.c flib.c
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -Wno-switch
include $(RTE_SDK)/mk/rte.extapp.mk
diff --git a/examples/multi_process/simple_mp/Makefile b/examples/multi_process/simple_mp/Makefile
index 31ec0c8..dd43814 100644
--- a/examples/multi_process/simple_mp/Makefile
+++ b/examples/multi_process/simple_mp/Makefile
@@ -46,5 +46,6 @@ SRCS-y := main.c mp_commands.c
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -Wno-switch
include $(RTE_SDK)/mk/rte.extapp.mk
diff --git a/examples/multi_process/symmetric_mp/Makefile b/examples/multi_process/symmetric_mp/Makefile
index c789f3c..9f1d184 100644
--- a/examples/multi_process/symmetric_mp/Makefile
+++ b/examples/multi_process/symmetric_mp/Makefile
@@ -46,5 +46,6 @@ SRCS-y := main.c
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -Wno-switch
include $(RTE_SDK)/mk/rte.extapp.mk
diff --git a/examples/netmap_compat/Makefile b/examples/netmap_compat/Makefile
index d398e5f..4ee8c60 100644
--- a/examples/netmap_compat/Makefile
+++ b/examples/netmap_compat/Makefile
@@ -38,6 +38,8 @@ unexport RTE_SRCDIR RTE_OUTPUT RTE_EXTMK
DIRS-y += bridge
+CFLAGS += -Wno-switch
+
.PHONY: all clean $(DIRS-y)
all: $(DIRS-y)
diff --git a/examples/netmap_compat/bridge/Makefile b/examples/netmap_compat/bridge/Makefile
index 50d96e8..f91a634 100644
--- a/examples/netmap_compat/bridge/Makefile
+++ b/examples/netmap_compat/bridge/Makefile
@@ -56,6 +56,7 @@ SRCS-y += compat_netmap.c
CFLAGS += -O3 -I$(SRCDIR)/../lib -I$(SRCDIR)/../netmap
CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -Wno-switch
include $(RTE_SDK)/mk/rte.extapp.mk
diff --git a/examples/vhost/Makefile b/examples/vhost/Makefile
index f45f83f..2c1f0ba 100644
--- a/examples/vhost/Makefile
+++ b/examples/vhost/Makefile
@@ -53,6 +53,7 @@ SRCS-y := main.c virtio-net.c vhost-net-cdev.c
CFLAGS += -O2 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter
CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -Wno-switch
LDFLAGS += -lfuse
include $(RTE_SDK)/mk/rte.extapp.mk
--
1.9.1
next prev parent reply other threads:[~2014-07-21 3:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-21 3:47 [PATCH] examples: fix clang compilation issues Matthew Hall
[not found] ` <1405914461-19335-1-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-07-21 3:47 ` [PATCH 1/4] l3fwd: some functions are unused in l3fwd-acl Matthew Hall
[not found] ` <1405914461-19335-2-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-07-21 13:44 ` Thomas Monjalon
2014-07-21 16:53 ` Matthew Hall
2014-07-21 17:37 ` Richardson, Bruce
2014-07-21 3:47 ` [PATCH 2/4] virtio-net.c: incorrect parens around equality check Matthew Hall
[not found] ` <1405914461-19335-3-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-07-22 13:14 ` Thomas Monjalon
2014-07-22 19:27 ` Matthew Hall
2014-07-21 3:47 ` Matthew Hall [this message]
[not found] ` <1405914461-19335-4-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-07-21 13:45 ` [PATCH 3/4] examples/*: -Wno-switch required for weird ioctl() ID's Thomas Monjalon
2014-07-21 3:47 ` [PATCH 4/4] rte.extvars.mk: allow user to override RTE_SDK_BIN Matthew Hall
[not found] ` <1405914461-19335-5-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-07-21 14:31 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405914461-19335-4-git-send-email-mhall@mhcomputing.net \
--to=mhall-hv3ognyu3jfzzajbqzqcxq@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.