From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/ltris: fix build with gcc 4.8
Date: Sat, 25 Jul 2020 22:23:31 +0200 [thread overview]
Message-ID: <20200725202331.GG19818@scaer> (raw)
In-Reply-To: <20200725164559.398518-1-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2020-07-25 18:45 +0200, Fabrice Fontaine spake thusly:
> Fixes:
> - http://autobuild.buildroot.org/results/991d601b30831df61c78dc7109a2f4ab9ace3f84
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> .../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
>
> 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 );
> --
> 2.27.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2020-07-25 20:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-25 16:45 [Buildroot] [PATCH 1/1] package/ltris: fix build with gcc 4.8 Fabrice Fontaine
2020-07-25 20:23 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200725202331.GG19818@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox