FreeBSD Bugzilla – Attachment 153689 Details for
Bug 198202
Fix emulators/open-vm-tools build with clang 3.6.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add unused attribute to hand-rolled static_assert constructs
emulators__open-vm-tools-fix-unused-typedefs-1.diff (text/plain), 2.68 KB, created by
Dimitry Andric
on 2015-03-02 20:07:19 UTC
(
hide
)
Description:
Add unused attribute to hand-rolled static_assert constructs
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-03-02 20:07:19 UTC
Size:
2.68 KB
patch
obsolete
>Index: emulators/open-vm-tools/files/patch-lib__include__vm_assert.h >=================================================================== >--- emulators/open-vm-tools/files/patch-lib__include__vm_assert.h (revision 0) >+++ emulators/open-vm-tools/files/patch-lib__include__vm_assert.h (working copy) >@@ -0,0 +1,12 @@ >+--- lib/include/vm_assert.h.orig 2013-09-23 17:51:10.000000000 +0200 >++++ lib/include/vm_assert.h 2015-02-04 15:55:56.011187000 +0100 >+@@ -363,7 +363,8 @@ >+ #define ASSERT_ON_COMPILE(e) \ >+ do { \ >+ enum { AssertOnCompileMisused = ((e) ? 1 : -1) }; \ >+- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ >++ typedef char AssertOnCompileFailed[AssertOnCompileMisused] \ >++ __attribute__((__unused__)); \ >+ } while (0) >+ >+ > >Property changes on: emulators/open-vm-tools/files/patch-lib__include__vm_assert.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h >=================================================================== >--- emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h (revision 0) >+++ emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h (working copy) >@@ -0,0 +1,12 @@ >+--- lib/include/vm_atomic.h.orig 2013-09-23 17:51:10.000000000 +0200 >++++ lib/include/vm_atomic.h 2015-02-04 16:28:59.372337000 +0100 >+@@ -2460,7 +2460,8 @@ >+ && 8 * sizeof (out) == size \ >+ && 8 * sizeof (cast) == size \ >+ ? 1 : -1 }; \ >+- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ >++ typedef char AssertOnCompileFailed[AssertOnCompileMisused] \ >++ __attribute__((__unused__)); \ >+ } \ >+ \ >+ \ > >Property changes on: emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198202
: 153689