Use of -Wextra

Programming, for all ages and all languages.
willedwards
Member
Member
Posts: 96
Joined: Sat Mar 15, 2014 3:49 pm

Re: Use of -Wextra

Post by willedwards »

I wish that unused arguments to non-static functions didn't count as unused variables. Then it would be a useful warning again.

(However, even if this was 'fixed' in future GCC and LLVM etc, it wouldn't help those using older versions of of those compilers or other compilers.)

Tangent: what do people think about -ftrapv?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Use of -Wextra

Post by Combuster »

willedwards wrote:Tangent: what do people think about -ftrapv?
Assuming it works, it's in most cases too expensive in production, but interesting to have in preproduction. Considering the top hits on google says its ridiculously broken in GCC, the real problems are elsewhere.

Then again, Legacy visual basic had it permanently enabled, and so far it was only a problem in the cases I explicitly wanted to do wraparound.


Considering the timing, is this a current hardware support topic in the Mill business?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
willedwards
Member
Member
Posts: 96
Joined: Sat Mar 15, 2014 3:49 pm

Re: Use of -Wextra

Post by willedwards »

Array
Combuster wrote:Considering the timing, is this a current hardware support topic in the Mill business?
Our zero-performance-impact checked arithmetic is not news :) Personally I hope that platforms deploying to Mill use it by default.
Post Reply