From: Pritesh Kothari Date: Fri, 28 Mar 2014 19:19:59 +0000 (-0700) Subject: sparse: fix the order of include paths to make sparse happy. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~13 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8605a29b26ceb7dd6ae001b70ffcf158aab406ee;hp=9b516652a1b0113faf6cfa4df2039b7c8a217838;p=sliver-openvswitch.git 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 --- 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)