Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: How to avoid an overflow during multiplication?
Date: Sat, 22 Jan 2022 10:03:34 -0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <86tudvodft.fsf@linuxsc.com>
References: <8735m954yz.fsf@bsb.me.uk> <877dbk36qu.fsf@nosuchdomain.example.com> <86v8ydp57h.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="434625eb2bdf5b21805d62a567edd212"; logging-data="22694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183v2yInv3gfPL8tXjDxU9tr/l0V4n0eMw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:ppqwsZgxd0hcQ87BvZ/9terOlm0= sha1:x1emcGILcaXo6EZb8a4HnlL+yaU=
Xref: csiph.com comp.lang.c:164545
Richard Damon writes:
[regarding various warning options and program style]
> That one may not be, but there are some that are purely stylistic,
> and different implementations enforce different styles.
>
> One big class is 'redundant' parentheses. Some implementations
> consider some operations to have 'unnatural' precedence, and will
> advise adding parentheses to make that explicit, while others will
> warn that those parentheses aren't needed and are just redundant.
Personally I would like to see a compiler option that warns
in /all/ cases of redundant parentheses.