Sujet : Re: Compiler utility
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.os.linux.miscDate : 07. Feb 2025, 21:16:48
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwvjza1zf0v.fsf@LkoBDZeT.terraraq.uk>
References : 1 2 3
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
root <
NoEMail@home.org> writes:
Richard Kettlewell <invalid@invalid.invalid> wrote:
root <NoEMail@home.org> writes:
Does anyone know of a compiler add-on which will read existing code,
and insert type (int) when the routine is not explicitly given?
>
No add-on needed, just have a look at the manual, specifically:
https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Standards.html#C-Language
>
Thanks Richard, but, also looking at the dialect link, what option
should I use to mimic gcc version 11.2.0 (GCC) or 12.2, either of
which compiles my stuff without a problem.
There’s no option to mimic a different compiler version. The options
select a language version.
If you want the behavior of a specific compiler version then the usual
approach is just to use that version.
I have tried std=gnu89 but that didn't work. I tried other stuff of
the form -Wno-implicit-init or something like that that compiler
suggested but no change with that.
Post some example code, the exact command you used to compile it, and
the errors you go.
-- https://www.greenend.org.uk/rjk/