lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #35809] Compiler warning on big endian, possible bug o


From: Bostjan Meglic
Subject: [lwip-devel] [bug #35809] Compiler warning on big endian, possible bug on little endian system
Date: Mon, 12 Mar 2012 15:23:24 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

URL:
  <http://savannah.nongnu.org/bugs/?35809>

                 Summary: Compiler warning on big endian, possible bug on
little endian system
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: bostjanm
            Submitted on: Mon 12 Mar 2012 03:23:23 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Compiler Warning
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.4.0

    _______________________________________________________

Details:

I have BIG_ENDIAN system, so htonx()/ntohx() functions are empty.
But I still got a compiler warning about 'expression has no effect' on the
following line:

htonl(addr);

Shouldn't that read as

addr = htonl(addr); ?






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?35809>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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