Re: Program crashes when running it outside dev environment
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Fri, 08 Jun 2007 19:44:14 -0400
David Tiktin wrote:
On 08 Jun 2007, Richard Heathfield <rjh@xxxxxxxxxxxxxxx> wrote:
So my suggestions would be:
1) crank up your warning level to the max
2) turn off any extensions you can live without
3) fix every single diagnostic message, and *never* with a cast
I'm with you right up to the last clause. Are you saying you
never actually *need* a cast? Because if you ever really do
need one and forget to put it in and the compiler gives a
diagnostic, you're advice is to... do what? Don't fix it?
I'm sure you don't mean that, since then you'd never compile
without any diagnostics! ;-)
AFAICS the only place you actually NEED a cast is when passing
variables to printf (and similar variadic) functions. Else they
will assume integers are passed.
--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: Program crashes when running it outside dev environment
- From: Keith Thompson
- Re: Program crashes when running it outside dev environment
- References:
- Program crashes when running it outside dev environment
- From: z
- Re: Program crashes when running it outside dev environment
- From: Richard Heathfield
- Re: Program crashes when running it outside dev environment
- From: David Tiktin
- Program crashes when running it outside dev environment
- Prev by Date: Re: Program crashes when running it outside dev environment
- Next by Date: Re: Program crashes when running it outside dev environment
- Previous by thread: Re: Program crashes when running it outside dev environment
- Next by thread: Re: Program crashes when running it outside dev environment
- Index(es):
Relevant Pages
|