[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] mig: explicitly use -std=gnu11
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] mig: explicitly use -std=gnu11 |
Date: |
Wed, 23 Nov 2022 11:51:36 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Flavio Cruz, le mer. 23 nov. 2022 00:10:10 -0500, a ecrit:
> Latest GCC will pick up gnu17 by default but gnu11 will be better supported
> with older compilers.
Mmm, but why explicitly requesting gnu11 then? Latest GCC will be fine
with using gnu17, and older GCC will be fine with using whatever it
supports.
> ---
> Makefile.am | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Makefile.am b/Makefile.am
> index 918efa1..a528b85 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -3,6 +3,7 @@
> libexec_PROGRAMS = migcom
> bin_SCRIPTS = mig
>
> +AM_CFLAGS = -std=gnu11
> AM_YFLAGS = -d
>
> EXTRA_DIST = gensym.awk cpu.sym
> --
> 2.37.2
>
>