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:
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.
A commit references this bug:
Date: Mon Mar 2 21:36:52 UTC 2015
New revision: 380297
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)
Fixed by r380297.