bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc3 and compiler warnings


From: James Morrison
Subject: gcc3 and compiler warnings
Date: Sat, 6 Apr 2002 14:34:08 -0800 (PST)

 Hi,

  gcc3 produces warnings for code that looks like:
      major = ntohl (*p++);
  where p is a pointer.  There is a lot of code that looks like this in
hurd/nfs.
 would the fix look like:
      major = ntohl (*p); p++;
 or
      major = ntohl (*p); 
      p++;
 or
      major = ntohl (p[0]);
      ...
      p = &p[2];



=====
James Morrison
   University of Waterloo
   Computer Science - Digital Hardware
   2A co-op
http://hurd.dyndns.org

Anyone refering this as 'Open Source' shall be eaten by a GNU

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]