diff mbox

[9/9] linux-generic: include netmap headers with -isystem

Message ID 1446060551-21029-10-git-send-email-stuart.haslam@linaro.org
State Superseded
Headers show

Commit Message

Stuart Haslam Oct. 28, 2015, 7:29 p.m. UTC
The netmap header file has some dubious casts that generate errors when
-Wcast-qual is enabled. Include it as a system header so that the
compiler ignores those errors without having to ignore errors in our own
source files.

Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
---
 platform/linux-generic/m4/odp_netmap.m4 | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4
index 72c3fab..d39301f 100644
--- a/platform/linux-generic/m4/odp_netmap.m4
+++ b/platform/linux-generic/m4/odp_netmap.m4
@@ -14,7 +14,7 @@  AC_ARG_WITH([netmap-path],
 AC_HELP_STRING([--with-netmap-path=DIR   path to netmap root directory],
                [(or in the default path if not specified).]),
     [NETMAP_PATH=$withval
-    AM_CPPFLAGS="$AM_CPPFLAGS -I$NETMAP_PATH/sys"
+    AM_CPPFLAGS="$AM_CPPFLAGS -isystem $NETMAP_PATH/sys"
     netmap_support=yes],[])
 
 ##########################################################################
@@ -35,13 +35,7 @@  else
     netmap_support=no
 fi
 
-# Disable cast errors until the problem in netmap_user.h is fixed upstream
-if test x$netmap_support = xyes
-then
-ODP_CFLAGS_EXTRA="$ODP_CFLAGS_EXTRA -Wno-cast-qual"
-fi
-
 ##########################################################################
 # Restore old saved variables
 ##########################################################################
-CPPFLAGS=$OLD_CPPFLAGS
\ No newline at end of file
+CPPFLAGS=$OLD_CPPFLAGS