summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormortimer <mortimer@openbsd.org>2019-04-25 00:08:56 +0000
committermortimer <mortimer@openbsd.org>2019-04-25 00:08:56 +0000
commita9a1999af47b6a7df41c334110ae7184f89af98d (patch)
tree94a06377ace5b2232d799bcda8672c189a9fe726
parentDo not check for working go executable during make clean cleandir obj. (diff)
downloadwireguard-openbsd-a9a1999af47b6a7df41c334110ae7184f89af98d.tar.xz
wireguard-openbsd-a9a1999af47b6a7df41c334110ae7184f89af98d.zip
Also touch --param ssp-buffer-size when using retguard in lieu of the
stack protector. Fixes 'unused arguments' warning when this argument is given. Noticed by robert@, ok robert@
-rw-r--r--gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp b/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp
index 199b3dadfd7..8f69d78d79c 100644
--- a/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp
@@ -4122,7 +4122,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// Consume the stack protector arguments to prevent warning
Args.getLastArg(options::OPT_fstack_protector_all,
options::OPT_fstack_protector_strong,
- options::OPT_fstack_protector);
+ options::OPT_fstack_protector,
+ options::OPT__param); // ssp-buffer-size
} else {
// If we're not using retguard, then do the usual stack protector
RenderSSPOptions(getToolChain(), Args, CmdArgs, KernelOrKext);