Page 2 of 2
Re: Use of -Wextra
Posted: Sun Nov 15, 2015 10:46 am
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?
Re: Use of -Wextra
Posted: Mon Nov 16, 2015 2:54 am
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?
Re: Use of -Wextra
Posted: Mon Nov 16, 2015 6:58 am
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.