All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] lzop: fixed compiling host-lzop with gcc6
@ 2016-06-25 11:20 Jaap Crezee
  0 siblings, 0 replies; only message in thread
From: Jaap Crezee @ 2016-06-25 11:20 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Jaap Crezee <jaap@jcz.nl>
---
 package/lzop/001-host-lzop-build-with-gcc6.patch | 37 ++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 package/lzop/001-host-lzop-build-with-gcc6.patch

diff --git a/package/lzop/001-host-lzop-build-with-gcc6.patch b/package/lzop/001-host-lzop-build-with-gcc6.patch
new file mode 100644
index 0000000..2b32bb7
--- /dev/null
+++ b/package/lzop/001-host-lzop-build-with-gcc6.patch
@@ -0,0 +1,37 @@
+From: Jaap Crezee <jaap@jcz.nl>
+Date: Sat, 25 june 2016 13:13:00 +0200
+Subject: [PATCH 1/1] lzop: fixed compiling host-lzop with gcc-6
+
+This patch allows host-lzop to be compiled with host systems containing gcc-6
+
+Upstream patch found here:
+https://build.opensuse.org/package/view_file/Archiving/lzop/lzop-1.03-gcc6.patch?expand=1
+
+Signed-off-by: Jaap Crezee <jaap@jcz.nl>
+Acked-by: James Knight <james.d.knight@live.com>
+--- a/src/miniacc.h.orig   2016-02-10 16:09:23.247315866 +0100
++++ b/src/miniacc.h   2016-02-10 16:12:14.973297054 +0100
+@@ -4469,12 +4469,12 @@
+ #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
+ #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
+ #else
+-    ACCCHK_ASSERT((1   << (8*SIZEOF_INT-1)) < 0)
++    ACCCHK_ASSERT((int)(1u   << (8*SIZEOF_INT-1)) < 0)
+ #endif
+     ACCCHK_ASSERT((1u  << (8*SIZEOF_INT-1)) > 0)
+ #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
+ #else
+-    ACCCHK_ASSERT((1l  << (8*SIZEOF_LONG-1)) < 0)
++    ACCCHK_ASSERT((long)(1ul  << (8*SIZEOF_LONG-1)) < 0)
+ #endif
+     ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0)
+ #if defined(acc_int16e_t)
+@@ -4703,7 +4703,7 @@
+ #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC)
+ #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
+ #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1)
+-    ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
++    ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
+ #endif
+ #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560))
+ #  pragma option pop
-- 
2.9.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-25 11:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-25 11:20 [Buildroot] [PATCH 1/1] lzop: fixed compiling host-lzop with gcc6 Jaap Crezee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.