Skip to contentSkip to conversation

package/ltris: fix build with gcc 4.8

PATCH New Fabrice Fontaine 2 participants 2 messages Jul 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ltris: fix build with gcc 4.8

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

---
 .../ltris/0001-fix-build-with-gcc-4.8.patch   | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/ltris/0001-fix-build-with-gcc-4.8.patch
package/ltris/0001-fix-build-with-gcc-4.8.patch new file +20 -0
new file mode 100644
index 0000000000..d6bbf6a946
@@ -0,0 +1,20 @@
+Fix build with gcc 4.8
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[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 );
Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/1 package/ltris: fix build with gcc 4.8

Fabrice, All,

On 2020-07-25 18:45 +0200, Fabrice Fontaine spake thusly:

Quoted 4 lines

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

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 38 lines
---
 .../ltris/0001-fix-build-with-gcc-4.8.patch   | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/ltris/0001-fix-build-with-gcc-4.8.patch
package/ltris/0001-fix-build-with-gcc-4.8.patch new file +20 -0
new file mode 100644
index 0000000000..d6bbf6a946
@@ -0,0 +1,20 @@
+Fix build with gcc 4.8
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[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 );
Signature · 6 lines
2.27.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'