sparse: fix the order of include paths to make sparse happy.
authorPritesh Kothari <pritesh.kothari@cisco.com>
Fri, 28 Mar 2014 19:19:59 +0000 (12:19 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Mar 2014 21:38:41 +0000 (14:38 -0700)
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 <pritesh.kothari@cisco.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Makefile.am

index dd0a111..9039389 100644 (file)
@@ -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)