* [Buildroot] [PATCH 1/1] package/tllist: fix build with gcc 4.8
@ 2024-03-04 15:54 Fabrice Fontaine
2024-03-04 21:48 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-03-04 15:54 UTC (permalink / raw)
To: buildroot; +Cc: Adam Duskett, Fabrice Fontaine
Fix the following build failure with gcc 4.8 raised since the addition
of the package in commit 996b786cfc03c3cf2ac631045650545c901e3075:
In file included from ../test.c:7:0:
../test.c: In function 'main':
../tllist.h:213:17: error: 'for' loop initial declarations are only allowed in C99 mode
for (int _i = 0; _i < __insize; _i++) { \
^
Fixes: 996b786cfc03c3cf2ac631045650545c901e3075
- http://autobuild.buildroot.org/results/e82fdf4f9ef199e1baa169d38a75872bddd4e6dd
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/tllist/tllist.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/tllist/tllist.mk b/package/tllist/tllist.mk
index 88a28d2427..69a34a65ab 100644
--- a/package/tllist/tllist.mk
+++ b/package/tllist/tllist.mk
@@ -12,5 +12,6 @@ TLLIST_LICENSE_FILES = LICENSE
# header only
TLLIST_INSTALL_TARGET = NO
TLLIST_INSTALL_STAGING = YES
+TLLIST_CFLAGS = $(TARGET_CFLAGS) -std=c99
$(eval $(meson-package))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/tllist: fix build with gcc 4.8
2024-03-04 15:54 [Buildroot] [PATCH 1/1] package/tllist: fix build with gcc 4.8 Fabrice Fontaine
@ 2024-03-04 21:48 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2024-03-04 21:48 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Adam Duskett, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with gcc 4.8 raised since the addition
> of the package in commit 996b786cfc03c3cf2ac631045650545c901e3075:
> In file included from ../test.c:7:0:
> ../test.c: In function 'main':
> ../tllist.h:213:17: error: 'for' loop initial declarations are only allowed in C99 mode
> for (int _i = 0; _i < __insize; _i++) { \
> ^
> Fixes: 996b786cfc03c3cf2ac631045650545c901e3075
> - http://autobuild.buildroot.org/results/e82fdf4f9ef199e1baa169d38a75872bddd4e6dd
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-04 21:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-04 15:54 [Buildroot] [PATCH 1/1] package/tllist: fix build with gcc 4.8 Fabrice Fontaine
2024-03-04 21:48 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox