[Webkit-unassigned] [Bug 145915] Fix cast-align warning in NetworkStateNotifierEfl.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 9 03:13:01 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145915

Csaba Osztrogonác <ossy at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ossy at webkit.org

--- Comment #1 from Csaba Osztrogonác <ossy at webkit.org> ---
Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp:138
--------------------------------------------------------------------
nlh = NLMSG_NEXT(nlh, length);

---
NLMSG_NEXT is defined in /usr/include/linux/netlink.h system header,
which guarantees proper alignment, so we should simply suppress it here.

#define NLMSG_NEXT(nlh,len)      ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
                                  (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))

#define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150709/630db083/attachment.html>


More information about the webkit-unassigned mailing list