[Webkit-unassigned] [Bug 259096] New: RemoteInspectorSocketWin.cpp: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 2 to 4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 10 23:45:32 PDT 2023


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

            Bug ID: 259096
           Summary: RemoteInspectorSocketWin.cpp: warning: cast from
                    'struct sockaddr *' to 'struct sockaddr_in *'
                    increases required alignment from 2 to 4
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com

clang-cl reports the following warning for Windows port.

[1177/6517] Building CXX object Source\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\inspector\remote\socket\win\RemoteInspectorSocketWin.cpp.obj
C:\home\webkit\gc\Source\JavaScriptCore\inspector\remote\socket\win\RemoteInspectorSocketWin.cpp(172,33): warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 2 to 4 [-Wcast-align]
            address.sin_addr = ((struct sockaddr_in*)(res->ai_addr))->sin_addr;
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230711/49b734a9/attachment.htm>


More information about the webkit-unassigned mailing list