[compiler-rt] [emutls] Handle unused parameters in a compiler agnostic way
authorMartin Storsjö <martin@martin.st>
Fri, 20 Nov 2020 09:29:27 +0000 (11:29 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 1 Dec 2020 08:07:53 +0000 (10:07 +0200)
commit2e5aaf65a344ae804343bfed6326ef33f61586b0
tree791292527738d3541a6b2311ed1e8e259cfc483b
parent31eeac915a0a25c2690b956931c77684bc34da0b
[compiler-rt] [emutls] Handle unused parameters in a compiler agnostic way

The MSVC specific pragmas disable this warning, but the pragmas themselves
(when not guarded by any _MSC_VER ifdef) cause warnings for other targets,
e.g. when targeting mingw.

Instead silence the MSVC warnings about unused parameters by casting
the parameters to void.

Differential Revision: https://reviews.llvm.org/D91851
compiler-rt/lib/builtins/emutls.c