[pooma-dev] signed == signed - sizeof(...), and other warning s... (non-POOMA C++ questions)

James Crotinger JimC at proximation.com
Tue May 1 20:10:27 UTC 2001


I guess this is just part of C's wonderful promotion rules - I found it in
K&R. This is harmless, but annoying. 
 
    Jim
 

-----Original Message-----
From: James Crotinger [mailto:JimC at proximation.com]
Sent: Tuesday, May 01, 2001 2:07 PM
To: Mark Mitchell (E-mail)
Cc: 'pooma-dev at pooma.codesourcery.com'
Subject: [pooma-dev] signed == signed - sizeof(...), and other warnings...
(non-POOMA C++ questions)



Hey Mark. Just a couple of C++ (non-Pooma related) questions. I was 
somewhat surprised that -Wall flagged the following code with a 
warning: 

  void bar() 
  { 
    int a, b; 
    (void)(a == b - sizeof(int)); 
  } 

  Jim 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010501/9ba63faf/attachment.html>


More information about the pooma-dev mailing list