OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 3:35 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Use of -Wextra
PostPosted: Sun Nov 15, 2015 10:46 am 
Offline
Member
Member

Joined: Sat Mar 15, 2014 3:49 pm
Posts: 96
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?


Top
 Profile  
 
 Post subject: Re: Use of -Wextra
PostPosted: Mon Nov 16, 2015 2:54 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject: Re: Use of -Wextra
PostPosted: Mon Nov 16, 2015 6:58 am 
Offline
Member
Member

Joined: Sat Mar 15, 2014 3:49 pm
Posts: 96
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 93 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group