Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jan 2017 18:47:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216263] emulators/open-vm-tools emulators/open-vm-tools-nox11: Fix build with clang 4.0.0
Message-ID:  <bug-216263-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216263

            Bug ID: 216263
           Summary: emulators/open-vm-tools emulators/open-vm-tools-nox11:
                    Fix build with clang 4.0.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(swills@FreeBSD.org)
          Assignee: swills@FreeBSD.org

Created attachment 179077
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179077&action=
=3Dedit
Disable -Waddress-of-packed-member for open-vm-tools

In bug 216008, we are testing clang 4.0.0 for ports, and open-vm-tools does=
n't
compile with it, due to its new -Waddress-of-packed-member warning:

hgfsServer.c:5709:50: error: taking address of packed member 'actualSize' of
class or structure 'HgfsReplyReadV3' may result in an unaligned pointer val=
ue
[-Werror,-Waddress-of-packed-member]
                                                &reply->actualSize);
                                                 ^~~~~~~~~~~~~~~~~
hgfsServer.c:5729:63: error: taking address of packed member 'actualSize' of
class or structure 'HgfsReplyRead' may result in an unaligned pointer value
[-Werror,-Waddress-of-packed-member]
                                             reply->payload,
&reply->actualSize);
                                                              ^~~~~~~~~~~~~=
~~~~

We could fix this warning by patching the code, but I assume this will be
executed on x86 only, so suppressing the warning is less hassle.  Here is a
patch to do just that.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216263-13>