Created attachment 153689 [details] Add unused attribute to hand-rolled static_assert constructs During the exp-run in bug 197395, it was found that emulators/open-vm-tools and emulators/open-vm-tools-nox11 give errors with clang 3.6.0: http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-27_12h37m16s/logs/errors/open-vm-tools-1280544_10,1.log This is because (part of) the code is compiled with -Werror, and unused local typedefs, which are used for compile-time assertions, are now warned about. The attached patch fixes this by adding an unused attribute.
Approved
A commit references this bug: Author: dim Date: Mon Mar 2 21:36:52 UTC 2015 New revision: 380297 URL: https://svnweb.freebsd.org/changeset/ports/380297 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 Changes: head/emulators/open-vm-tools/files/patch-lib__include__vm_assert.h head/emulators/open-vm-tools/files/patch-lib__include__vm_atomic.h
Fixed by r380297.