event/dsw: fix build with icc
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Thu, 4 Oct 2018 11:21:13 +0000 (13:21 +0200)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 4 Oct 2018 14:17:07 +0000 (16:17 +0200)
commit85046e4ee99db8cf6387a5a0cd4dec525ed27189
tree87d29aa49206e00951b2412a07eec7f0e0b58177
parent03ba15ca65c19e63948041cbcfca17672dd537cb
event/dsw: fix build with icc

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 dsw with icc.

Fixes: 46a186b1f0c5 ("event/dsw: add device registration and build system")

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/event/dsw/Makefile