| Deutsch English Français Italiano |
|
<87zfg3hp05.fsf@bsb.me.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse <ben@bsb.me.uk> Newsgroups: comp.lang.c Subject: Re: enums and switch vs function calls Date: Fri, 25 Apr 2025 23:09:46 +0100 Organization: A noiseless patient Spider Lines: 27 Message-ID: <87zfg3hp05.fsf@bsb.me.uk> References: <vsr0ml$1to9m$1@dont-email.me> <enum-20250405122329@ram.dialup.fu-berlin.de> <1ybIP.1259194$2zn8.458292@fx15.iad> <86y0wdfvc0.fsf@linuxsc.com> <FtwIP.1525960$eNx6.1342019@fx14.iad> <87bjslhzfd.fsf@bsb.me.uk> <E8POP.99689$oJg.83920@fx17.iad> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 26 Apr 2025 00:09:47 +0200 (CEST) Injection-Info: dont-email.me; posting-host="274e7c70a78a7c16c73c2cf747612267"; logging-data="992015"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nyCpX5ZWv18YTOCtaBBCqbVsVJSom42k=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:8AdJ9WSBfgQRGYK0vWBRoCQz6Lc= sha1:cXlO4C4t5pjzaqReMnZr7a47j5Y= X-BSB-Auth: 1.af227a37558a9246cb8e.20250425230946BST.87zfg3hp05.fsf@bsb.me.uk Bytes: 2063 scott@slp53.sl.home (Scott Lurndal) writes: > Ben Bacarisse <ben@bsb.me.uk> writes: >>scott@slp53.sl.home (Scott Lurndal) writes: >> >>> Tim Rentsch <tr.17687@z991.linuxsc.com> writes: .... >>>>That's true, but it can be reduced to only two lines total (so only one >>>>line more than needed), by using -fno-diagnostics-show-caret. >>> >>> Yes, I use that. I still find that the "note:" lines clutter the >>> output and provide zero benefit. >> >>Does >> >> gcc -fcompare-debug-second -fno-diagnostics-show-caret > > We use the latter. It doesn't get rid of the 'note' sections, however. > > For some reason, -fcompare-debug-second is commented out in our Makefile, but > it appears that only applies in when a second compile is required. It appears to have a second "side-effect" use. It removes notes when I use it. -- Ben.