Browse Source

opkg: work around a gcc warning bug related to array bounds checking

SVN-Revision: 14506
Felix Fietkau 17 years ago
parent
commit
f10075e5b6
1 changed files with 10 additions and 0 deletions
  1. 10 0
      package/opkg/patches/005-array_warnings.patch

+ 10 - 0
package/opkg/patches/005-array_warnings.patch

@@ -0,0 +1,10 @@
+--- a/libopkg/Makefile.am
++++ b/libopkg/Makefile.am
+@@ -1,6 +1,6 @@
+ 
+ HOST_CPU=@host_cpu@
+-AM_CFLAGS=-Wall -Werror -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
++AM_CFLAGS=-Wall -Werror -Wno-array-bounds -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
+ 
+ libopkg_includedir=$(includedir)/libopkg
+ libopkg_include_HEADERS= opkg.h