Date: Mon, 2 Mar 2015 21:36:52 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380297 - head/emulators/open-vm-tools/files Message-ID: <201503022136.t22LaqFH015271@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim (src committer) Date: Mon Mar 2 21:36:51 2015 New Revision: 380297 URL: https://svnweb.freebsd.org/changeset/ports/380297 QAT: https://qat.redports.org/buildarchive/r380297/ Log: Fix -Werror warnings from clang 3.6.0 and higher about unused local typedefs, which are used for hand-implementing compile-time assertions, by adding an __unused__ attribute. Approved by: maintainer (swills) PR: 198202 Added: head/emulators/open-vm-tools/files/patch-lib__include__vm_assert.h (contents, props changed) head/emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h (contents, props changed) Added: head/emulators/open-vm-tools/files/patch-lib__include__vm_assert.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/open-vm-tools/files/patch-lib__include__vm_assert.h Mon Mar 2 21:36:51 2015 (r380297) @@ -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) + + Added: head/emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h Mon Mar 2 21:36:51 2015 (r380297) @@ -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__)); \ + } \ + \ + \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503022136.t22LaqFH015271>