lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5846] struct sockaddr_in has different alignment th


From: Jonathan Larmour
Subject: [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr
Date: Thu, 05 Apr 2007 13:30:34 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 Fedora/1.5.0.10-1.fc5 Firefox/1.5.0.10

Follow-up Comment #3, patch #5846 (project lwip):

This doesn't seem right. No-one should be declaring a "struct sockaddr". This
means that we only ever declare sockaddr_in's, and cast them to sockaddr's,
and that means the alignment is always fine.

If there is a compiler generating a warning for this, that's unfortunate, but
we should not increase footprint or complexity just to silence a warning.

What code is causing the warning?


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5846>

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





reply via email to

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