Alex Perry <[EMAIL PROTECTED]> writes:

> I was just rebuilding FGFS's binary when I noticed these warnings.
> Depending on what your compiler does, the runtime effect could be bad.
> Someone was mentioning having occasional crashes.
> 
> source='tower.cxx' object='tower.o' libtool=no \
> depfile='.deps/tower.Po' tmpdepfile='.deps/tower.TPo' \
> depmode=gcc /bin/sh ../../depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  
> -I/usr/X11R6/include  -g -O2 -D_REENTRANT -c -o tower.o `test -f tower.cxx || echo 
> './'`tower.cxx
> tower.cxx: In method `void FGTower::CheckCircuitList(double)':
> tower.cxx:901: warning: `double' used for argument 1 of `abs(int)'
> tower.cxx:934: warning: `double' used for argument 1 of `abs(int)'
> tower.cxx:944: warning: `double' used for argument 1 of `abs(int)'
> tower.cxx:954: warning: `double' used for argument 1 of `abs(int)'
> 

Hmm, I always compile with -Wall but it doesn't flag these :-(  I'll fix them...

Re. the occasional crashes, the ATC init ones I posted about a while ago Melchior 
helped me with off list, it came down to something stupid I'd done years ago:

*.hxx...

class A {

private:
  const char* c


*.cxx...

void A::init() {
  string s;
  c = s;


Something like that anyway!

The crashes in ssgCullAndDraw went away when Erik reverted some transparency rendering 
patches a week or two ago.

I'm now clear of inexplicable crashes on both Cygwin and Linux :-)

Famous last words - it's bound to bomb out now!!

I will fix those warnings though.

Cheers - Dave


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to