[Buildroot] [git commit] package/ltris: fix build with gcc 4.8

From: Yann E. MORIN <hidden>
Date: 2020-07-25 20:22:19
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=5b37c5258999ac95aac7a7433feb43ea01ec2555
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fixes:
 - http://autobuild.buildroot.org/results/991d601b30831df61c78dc7109a2f4ab9ace3f84

Signed-off-by: Fabrice Fontaine <redacted>
Signed-off-by: Yann E. MORIN <redacted>
---
 package/ltris/0001-fix-build-with-gcc-4.8.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
diff --git a/package/ltris/0001-fix-build-with-gcc-4.8.patch b/package/ltris/0001-fix-build-with-gcc-4.8.patch
new file mode 100644
index 0000000000..d6bbf6a946
--- /dev/null
+++ b/package/ltris/0001-fix-build-with-gcc-4.8.patch
@@ -0,0 +1,20 @@
+Fix build with gcc 4.8
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://sourceforge.net/p/lgames/patches/28]
+Index: ltris/src/bowl.c
+===================================================================
+--- ltris/src/bowl.c	(r??vision 421)
++++ ltris/src/bowl.c	(copie de travail)
+@@ -828,9 +828,10 @@
+ */
+ void bowl_init_block_masks() 
+ {
++	int i;
+ 	int masksize = sizeof(block_masks[0].mask); // same for all
+ 
+-	for (int i = 0; i < 7; i++) {
++	for (i = 0; i < 7; i++) {
+ 		block_masks[i].rx = 2;
+ 		block_masks[i].ry = 2;
+ 		memset(block_masks[i].mask, 0, masksize );
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help