Sujet : Re: So You Think You Can Const?
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 08. Jan 2025, 20:44:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86o70h850x.fsf@linuxsc.com>
References : 1
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Julio Di Egidio <
julio@diegidio.name> writes:
Hi everybody,
>
I am back to programming in C after many years:
indeed I have forgotten so many things, including
how much I love this language. :)
>
In particular, I am using C90, and compiling with
`gcc ... -ansi -pedantic -Wall -Wextra` (as I have
the requirement to ideally support any device).
If it is absolutely necessary to have source that conforms to
C90, you should at the very least compile it (on some machine)
under both C90 rules and C99 rules. Frankly I doubt you will
ever have a real need to target a C90-only environment, but if
you do decide to go down that path then at least also compile the
program as C99, to be sure the brokennesses of C90 don't bite
you.