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 <[email protected]> --- platform/linux-generic/m4/odp_netmap.m4 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 -- 2.1.1 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
