Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/frotz: fix build with gcc 14
@ 2024-05-16 16:32 Fabrice Fontaine
  2024-05-16 19:25 ` Thomas Huth
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2024-05-16 16:32 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Huth, Fabrice Fontaine

Drop -std=c99 from CFLAGS to avoid the following build failure with gcc
14:

fastmem.c: In function 'z_restore':
fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
  842 |                 f_setup.aux_name = strdup(default_name);
      |                                    ^~~~~~
      |                                    strcmp

Fixes:
 - http://autobuild.buildroot.org/results/df3b3b98265ec3a75578614746b2d1426c90e125

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/frotz/frotz.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/frotz/frotz.mk b/package/frotz/frotz.mk
index 5af235137c..807c800be9 100644
--- a/package/frotz/frotz.mk
+++ b/package/frotz/frotz.mk
@@ -20,8 +20,7 @@ endif
 
 define FROTZ_BUILD_CMDS
 	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr CONFIG_DIR=/etc \
-		SOUND_TYPE=none CURSES="$(FROTZ_CURSES)" USE_UTF8=$(FROTZ_UTF8) \
-		CFLAGS="$(TARGET_CFLAGS) -std=c99"
+		SOUND_TYPE=none CURSES="$(FROTZ_CURSES)" USE_UTF8=$(FROTZ_UTF8)
 endef
 
 define FROTZ_INSTALL_TARGET_CMDS
-- 
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/frotz: fix build with gcc 14
  2024-05-16 16:32 [Buildroot] [PATCH 1/1] package/frotz: fix build with gcc 14 Fabrice Fontaine
@ 2024-05-16 19:25 ` Thomas Huth
  2024-05-16 20:38   ` Fabrice Fontaine
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2024-05-16 19:25 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

Am Thu, 16 May 2024 18:32:45 +0200
schrieb Fabrice Fontaine <fontaine.fabrice@gmail.com>:

> Drop -std=c99 from CFLAGS to avoid the following build failure with gcc
> 14:
> 
> fastmem.c: In function 'z_restore':
> fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
>   842 |                 f_setup.aux_name = strdup(default_name);
>       |                                    ^~~~~~
>       |                                    strcmp

I'm pretty sure there was originally was a reason for using -std=c99 here
... could we maybe use -std=gnu99 instead of removing it?

 Thomas
_______________________________________________
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/frotz: fix build with gcc 14
  2024-05-16 19:25 ` Thomas Huth
@ 2024-05-16 20:38   ` Fabrice Fontaine
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-05-16 20:38 UTC (permalink / raw)
  To: Thomas Huth; +Cc: buildroot

Le jeu. 16 mai 2024 à 21:26, Thomas Huth <huth@tuxfamily.org> a écrit :
>
> Am Thu, 16 May 2024 18:32:45 +0200
> schrieb Fabrice Fontaine <fontaine.fabrice@gmail.com>:
>
> > Drop -std=c99 from CFLAGS to avoid the following build failure with gcc
> > 14:
> >
> > fastmem.c: In function 'z_restore':
> > fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
> >   842 |                 f_setup.aux_name = strdup(default_name);
> >       |                                    ^~~~~~
> >       |                                    strcmp
>
> I'm pretty sure there was originally was a reason for using -std=c99 here
> ... could we maybe use -std=gnu99 instead of removing it?

Sure, I'll let you test it and send a v2 ;-)

>
>  Thomas

Best Regards,

Fabrice
_______________________________________________
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-05-16 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16 16:32 [Buildroot] [PATCH 1/1] package/frotz: fix build with gcc 14 Fabrice Fontaine
2024-05-16 19:25 ` Thomas Huth
2024-05-16 20:38   ` Fabrice Fontaine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox