From d2bc932090d1b341921e50191fe1568820f05ca5 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Thu, 17 Jan 2019 07:52:12 +0100 Subject: [PATCH] executor: unbreak on OpenBSD Commit b5df78dc ("all: support extra coverage") broke the executor on OpenBSD: executor/executor.cc:61:11: error: unused variable 'kExtraCoverSize' [-Werror,-Wunused-const-variable] const int kExtraCoverSize = 256 << 10; --- executor/common_linux.h | 1 + executor/executor.cc | 1 - pkg/csource/generated.go | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/executor/common_linux.h b/executor/common_linux.h index 78d1e82a..b6860e30 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -9,6 +9,7 @@ #include #if SYZ_EXECUTOR +const int kExtraCoverSize = 256 << 10; struct cover_t; static void cover_reset(cover_t* cov); #endif diff --git a/executor/executor.cc b/executor/executor.cc index a0357c18..d1d1f269 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -58,7 +58,6 @@ const int kOutPipeFd = kMaxFd - 2; // remapped from stdout const int kCoverFd = kOutPipeFd - kMaxThreads; const int kMaxArgs = 9; const int kCoverSize = 256 << 10; -const int kExtraCoverSize = 256 << 10; const int kFailStatus = 67; const int kRetryStatus = 69; const int kErrorStatus = 68; diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 648a0bd0..316c091f 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -975,6 +975,7 @@ static int do_sandbox_none(void) #include #if SYZ_EXECUTOR +const int kExtraCoverSize = 256 << 10; struct cover_t; static void cover_reset(cover_t* cov); #endif