Message ID | 20230114170738.1101463-1-fontaine.fabrice@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/1] package/mongoose: fix build with gcc 4.8 | expand |
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes: > Fix the following build failure with gcc 4.8 raised since bump to > version 7.8 in commit f9e51e1150f59962577358b3da5c390ca4749291: > /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c: In function 'mg_iotest': > /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c:4484:3: error: 'for' loop initial declarations are only allowed in C99 mode > for (struct mg_connection *c = mgr->conns; c != NULL; c = c->next) { > ^ > Fixes: > - http://autobuild.buildroot.org/results/c538c6d8e87e4e24097c9878ee15083802276505 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Committed, thanks.
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes: > Fix the following build failure with gcc 4.8 raised since bump to > version 7.8 in commit f9e51e1150f59962577358b3da5c390ca4749291: > /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c: In function 'mg_iotest': > /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c:4484:3: error: 'for' loop initial declarations are only allowed in C99 mode > for (struct mg_connection *c = mgr->conns; c != NULL; c = c->next) { > ^ > Fixes: > - http://autobuild.buildroot.org/results/c538c6d8e87e4e24097c9878ee15083802276505 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Committed to 2022.11.x, thanks.
diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk index 8d06ed4689..0693f7553a 100644 --- a/package/mongoose/mongoose.mk +++ b/package/mongoose/mongoose.mk @@ -13,7 +13,7 @@ MONGOOSE_INSTALL_STAGING = YES # static library MONGOOSE_INSTALL_TARGET = NO -MONGOOSE_CFLAGS = $(TARGET_CFLAGS) +MONGOOSE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99 ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGOOSE_DEPENDENCIES += openssl
Fix the following build failure with gcc 4.8 raised since bump to version 7.8 in commit f9e51e1150f59962577358b3da5c390ca4749291: /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c: In function 'mg_iotest': /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c:4484:3: error: 'for' loop initial declarations are only allowed in C99 mode for (struct mg_connection *c = mgr->conns; c != NULL; c = c->next) { ^ Fixes: - http://autobuild.buildroot.org/results/c538c6d8e87e4e24097c9878ee15083802276505 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> --- package/mongoose/mongoose.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)