[all-commits] [llvm/llvm-project] 2e5aaf: [compiler-rt] [emutls] Handle unused parameters in...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Dec 1 00:08:24 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2e5aaf65a344ae804343bfed6326ef33f61586b0
https://github.com/llvm/llvm-project/commit/2e5aaf65a344ae804343bfed6326ef33f61586b0
Author: Martin Storsjö <martin at martin.st>
Date: 2020-12-01 (Tue, 01 Dec 2020)
Changed paths:
M compiler-rt/lib/builtins/emutls.c
Log Message:
-----------
[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
More information about the All-commits
mailing list