Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Angband > Re: Compiler wa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 9 Topic 6470 of 6642
Post > Topic >>

Re: Compiler warnings.

by pete m <pmac360@[EMAIL PROTECTED] > Mar 20, 2008 at 09:01 AM

On Mar 20, 8:42 am, Antony Sidwell <ant...@[EMAIL PROTECTED]
> wrote:
> roustk wrote:
> > Actually, having just tried this, -pedantic doesn't seem to do it.  I
now
> > get warnings about C++ style comments, but nothing more.  I'll play
> > with Shanoah's full list, though.  (Pointer arithmetic is bad?  We're
in
> > trouble...)
>
> Just a quick summary of the warnings enabled there, and why you do or
> don't want to use the options (all IMO obviously)...
>
> -pedantic is a good one if you want your code to be ****table.  Without
> it, you're not going to get warned about various actually illegal (in
> the sense of non-standard) constructions.
>
> -Wall turns on a whole load of mostly useful warnings - particularly
> warnings of possible initialised variables, unused "static" functions,
> and so on.
>
> -Wextra turns on a few warnings such as -Wmissing-parameter-type and
> -Wold-style-declaration that can be useful sometimes, but also a couple
> of no particular use, and one you really want to turn off (see
> missing-field-initializers).

I am glad to hear this.  I agree that missing-field-initializers is
particularly annoying. And unused-parameters just highlights a defect
in C vis a vis C++.
 




 9 Posts in Topic:
Compiler warnings.
pete m <pmac360@[EMAIL  2008-03-19 19:50:10 
Re: Compiler warnings.
roustk <roustk@[EMAIL   2008-03-20 03:34:14 
Re: Compiler warnings.
pete m <pmac360@[EMAIL  2008-03-19 21:36:20 
Re: Compiler warnings.
roustk <roustk@[EMAIL   2008-03-20 14:25:21 
Re: Compiler warnings.
Antony Sidwell <antony  2008-03-20 15:42:44 
Re: Compiler warnings.
Antony Sidwell <antony  2008-03-20 08:37:00 
Re: Compiler warnings.
"arcum42@[EMAIL PROT  2008-03-20 04:54:40 
Re: Compiler warnings.
pete m <pmac360@[EMAIL  2008-03-20 09:01:16 
Re: Compiler warnings.
"arcum42@[EMAIL PROT  2008-03-20 13:51:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:02:38 CDT 2008.