RE: [Flightgear-devel] Re: JSBSim BUG?

2001-11-30 Thread Vallevand, Mark K

Perhaps you mean '=' instead of '=='?

   void SetEngineNumber(int nn) {EngineNumber = nn;}


Regards.
Mark K Vallevand
Fat, dumb and happy.  2 out of 3 ain't bad.



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 30, 2001 10:08 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [Flightgear-devel] Re: JSBSim BUG?
> 
> 
> > Hi Jon,
> > 
> > It looks like the compiler has got something here:
> > 
> > "../FGEngine.h", line 186: warning(1171): expression has no effect
> >  void SetEngineNumber(int nn) {EngineNumber == nn;}
> 
> Yes, I have just noticed that but cannot figure out what the 
> hell that's all 
> about. Am I missing something obvious?
> 
> [posted to the fgfs developer list]
> 
> Jon
> 
> 
> 
> ___
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 

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



re: [Flightgear-devel] Re: JSBSim BUG?

2001-11-30 Thread David Megginson

[EMAIL PROTECTED] writes:

 > > "../FGEngine.h", line 186: warning(1171): expression has no effect
 > >  void SetEngineNumber(int nn) {EngineNumber == nn;}
 > 
 > Yes, I have just noticed that but cannot figure out what the hell that's all 
 > about. Am I missing something obvious?

"==" instead of "="


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]


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



Re: [Flightgear-devel] Re: JSBSim BUG?

2001-11-30 Thread jsb

> It looks to me like it evaluates EngineNumber == nn, but does nothing
> with the result, hence 'Expression has no effect'.

oh
$hi#.


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



Re: [Flightgear-devel] Re: JSBSim BUG?

2001-11-30 Thread Ross Golder

It looks to me like it evaluates EngineNumber == nn, but does nothing
with the result, hence 'Expression has no effect'.

--
Ross

On Fri, 2001-11-30 at 16:07, [EMAIL PROTECTED] wrote:
> > Hi Jon,
> > 
> > It looks like the compiler has got something here:
> > 
> > "../FGEngine.h", line 186: warning(1171): expression has no effect
> >  void SetEngineNumber(int nn) {EngineNumber == nn;}
> 
> Yes, I have just noticed that but cannot figure out what the hell that's all 
> about. Am I missing something obvious?
> 
> [posted to the fgfs developer list]
> 
> Jon
> 
> 
> 
> ___
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel



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