* [Buildroot] [PATCH 1/1] package/rauc-hawkbit-updater: fix build with gcc 4.8
@ 2024-03-04 15:50 Fabrice Fontaine
2024-03-04 21:48 ` Peter Korsgaard
2024-03-19 16:33 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-03-04 15:50 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine, Colin Foster
Fix the following build failure with gcc 4.8 raised since the addition
of the package in commit 928b7219cd7079864eadadc66dbff21c5cd72804:
../src/hawkbit-client.c:873:17: error: 'for' loop initial declarations are only allowed in C99 mode
for (const gint *code = &resumable_codes[0]; *code; code++)
^
../src/hawkbit-client.c:873:17: note: use option -std=c99 or -std=gnu99 to compile your code
Fixes: 928b7219cd7079864eadadc66dbff21c5cd72804
- http://autobuild.buildroot.org/results/e275d0ec4fe1da418a6163b46666316034b83b19
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/rauc-hawkbit-updater/rauc-hawkbit-updater.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/rauc-hawkbit-updater/rauc-hawkbit-updater.mk b/package/rauc-hawkbit-updater/rauc-hawkbit-updater.mk
index a453f75a28..3836d3c84e 100644
--- a/package/rauc-hawkbit-updater/rauc-hawkbit-updater.mk
+++ b/package/rauc-hawkbit-updater/rauc-hawkbit-updater.mk
@@ -10,5 +10,6 @@ RAUC_HAWKBIT_UPDATER_SOURCE = rauc-hawkbit-updater-$(RAUC_HAWKBIT_UPDATER_VERSIO
RAUC_HAWKBIT_UPDATER_LICENSE = LGPL-2.1
RAUC_HAWKBIT_UPDATER_LICENSE_FILES = LICENSE
RAUC_HAWKBIT_UPDATER_DEPENDENCIES = json-glib libcurl
+RAUC_HAWKBIT_UPDATER_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] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/rauc-hawkbit-updater: fix build with gcc 4.8
2024-03-04 15:50 [Buildroot] [PATCH 1/1] package/rauc-hawkbit-updater: fix build with gcc 4.8 Fabrice Fontaine
@ 2024-03-04 21:48 ` Peter Korsgaard
2024-03-19 16:33 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-03-04 21:48 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Colin Foster, 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 928b7219cd7079864eadadc66dbff21c5cd72804:
> ../src/hawkbit-client.c:873:17: error: 'for' loop initial declarations are only allowed in C99 mode
> for (const gint *code = &resumable_codes[0]; *code; code++)
> ^
> ../src/hawkbit-client.c:873:17: note: use option -std=c99 or -std=gnu99 to compile your code
> Fixes: 928b7219cd7079864eadadc66dbff21c5cd72804
> - http://autobuild.buildroot.org/results/e275d0ec4fe1da418a6163b46666316034b83b19
> 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] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/rauc-hawkbit-updater: fix build with gcc 4.8
2024-03-04 15:50 [Buildroot] [PATCH 1/1] package/rauc-hawkbit-updater: fix build with gcc 4.8 Fabrice Fontaine
2024-03-04 21:48 ` Peter Korsgaard
@ 2024-03-19 16:33 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-03-19 16:33 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Colin Foster, 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 928b7219cd7079864eadadc66dbff21c5cd72804:
> ../src/hawkbit-client.c:873:17: error: 'for' loop initial declarations are only allowed in C99 mode
> for (const gint *code = &resumable_codes[0]; *code; code++)
> ^
> ../src/hawkbit-client.c:873:17: note: use option -std=c99 or -std=gnu99 to compile your code
> Fixes: 928b7219cd7079864eadadc66dbff21c5cd72804
> - http://autobuild.buildroot.org/results/e275d0ec4fe1da418a6163b46666316034b83b19
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-19 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-04 15:50 [Buildroot] [PATCH 1/1] package/rauc-hawkbit-updater: fix build with gcc 4.8 Fabrice Fontaine
2024-03-04 21:48 ` Peter Korsgaard
2024-03-19 16:33 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox