Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: So You Think You Can Const? Date: Wed, 08 Jan 2025 11:44:14 -0800 Organization: A noiseless patient Spider Lines: 19 Message-ID: <86o70h850x.fsf@linuxsc.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Wed, 08 Jan 2025 20:44:15 +0100 (CET) Injection-Info: dont-email.me; posting-host="6e19b66cb0c542b6b8c649f7413a0cd9"; logging-data="3071468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1881KP4wLxUD86wI5IWOyCul2eTpKg2vRQ=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:C/NBWlbVVyt44Kc4hOYk4GaFRCM= sha1:wwbjVZA2A9fjL3OEsa/dU1QtRV8= Xref: csiph.com comp.lang.c:389890 Julio Di Egidio 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.