event/dsw: avoid supplying -Wno-format-nonliteral to icc
Checks
Commit Message
Make the -Wno-format-nonliteral flag conditional, and only set in
clang and gcc builds, since this flag is not supported (nor needed)
when building with icc.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
---
drivers/event/dsw/Makefile | 2 ++
1 file changed, 2 insertions(+)
Comments
On 10/3/2018 9:13 AM, Mattias Rönnblom wrote:
> Make the -Wno-format-nonliteral flag conditional, and only set in
> clang and gcc builds, since this flag is not supported (nor needed)
> when building with icc.
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
perhaps simply: "event/dsw: fix icc build"
Fixes: 46a186b1f0c5 ("event/dsw: add device registration and build system")
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
03/10/2018 21:18, Ferruh Yigit:
> On 10/3/2018 9:13 AM, Mattias Rönnblom wrote:
> > Make the -Wno-format-nonliteral flag conditional, and only set in
> > clang and gcc builds, since this flag is not supported (nor needed)
> > when building with icc.
> >
> > Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
>
> perhaps simply: "event/dsw: fix icc build"
>
> Fixes: 46a186b1f0c5 ("event/dsw: add device registration and build system")
>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied, thanks
04/10/2018 18:09, Thomas Monjalon:
> 03/10/2018 21:18, Ferruh Yigit:
> > On 10/3/2018 9:13 AM, Mattias Rönnblom wrote:
> > > Make the -Wno-format-nonliteral flag conditional, and only set in
> > > clang and gcc builds, since this flag is not supported (nor needed)
> > > when building with icc.
> > >
> > > Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
> >
> > perhaps simply: "event/dsw: fix icc build"
> >
> > Fixes: 46a186b1f0c5 ("event/dsw: add device registration and build system")
> >
> > Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
>
> Applied, thanks
Cancelled as a v2 was applied in next-event tree.
Advices to avoid such confusion:
- the v1 must be marked as superseded in patchwork
- the v2 must be in the same thread thanks to --in-reply-to
And thanks Ferruh for spotting this :)
@@ -8,7 +8,9 @@ LIB = librte_pmd_dsw_event.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
+ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
CFLAGS += -Wno-format-nonliteral
+endif
LDLIBS += -lrte_eal
LDLIBS += -lrte_mbuf