From 8605a29b26ceb7dd6ae001b70ffcf158aab406ee Mon Sep 17 00:00:00 2001 From: Pritesh Kothari Date: Fri, 28 Mar 2014 12:19:59 -0700 Subject: [PATCH 1/1] sparse: fix the order of include paths to make sparse happy. This fix restores the order of include path such that the local include/ comes before the system /usr/include in the #include path. Thus by making sure that include/linux/types.h and include/linux/openvswitch.h take precedence over the similar files in /usr/include/ directory. Signed-off-by: Pritesh Kothari Signed-off-by: Ben Pfaff --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index dd0a1117b..903938921 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,12 +18,12 @@ AM_CPPFLAGS += $(PTHREAD_INCLUDES) AM_LDFLAGS += $(PTHREAD_LDFLAGS) endif -AM_CPPFLAGS += $(SSL_INCLUDES) - AM_CPPFLAGS += -I $(top_srcdir)/include AM_CPPFLAGS += -I $(top_srcdir)/lib AM_CPPFLAGS += -I $(top_builddir)/lib +AM_CPPFLAGS += $(SSL_INCLUDES) + AM_CFLAGS = -Wstrict-prototypes AM_CFLAGS += $(WARNING_FLAGS) -- 2.43.0