Skip to navigation
   
Dave F's Blog
Warning, warning, ….

By Dave F in Reader

Posted in Uncategorized on October 13, 2006 at 5:24 pm

Permalink | Author Profile

Arrrgg, I’m getting overwhelmed (overrun, over excited??) by compiler warnings. Yes, I know they should be dealt with because

a) they might be a problem

b) they might be a problem later

c) they stop you seeing the real errors / warnings

However, this code compiles on N different platforms and can have N*N compile options which means that sometime parameters / variables are used and sometimes they aren’t. I don’t want to see 100’s of “warning unused parameter” messages. Neither do I want to confuse the code further with more #if’s to take them out. I could cast them to void but there are a hell of a lot (it’s recycled code) but basically an unused parameter or variable isn’t a hanging offence why bother? There are a few other messages of a simillar nature.

Ideally I want a global setting for both g++ & ms vc that will turn off selected warnings. MS vc lets me use #pragma but I need to set it in lots of files :-(

If anyone knows how to do it (or wants to hack g++ - it is open source) to do it please let me know - I’m warning you, I may go mad else

- I’m warning you, I may go mad else

- I’m warning you, I may go mad else

- I’m warning you, I may go mad else

- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else- I’m warning you, I may go mad else

12345
Not yet rated
Loading ... Loading ...

Previous Post | Next Post

 
 
Comments
This article has no comments yet.

Make a comment

* required

* required

We stop spam using reCaptcha.
Type the words below and click Submit Comment.

Advertisement