diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-09-19 11:15:08 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-09-20 11:18:34 +0200 |
| commit | a0da096399bbe5a05855df3ddb67a479a07cdfdd (patch) | |
| tree | 7613502dd43758d88014693c9f11b6780b8feeb5 /executor/executor.cc | |
| parent | 8eb14a0057bd21ffe60a8a8935c17b81f18a6348 (diff) | |
executor: fix build
Fix build after "executor: remove unused var flag_sandbox_privs".
Some variables/functions can't be static as they are unused on some OSes,
which produces unused warnings.
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index a72c48add..ef75ed7ac 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -65,7 +65,7 @@ const int kErrorStatus = 68; // Logical error (e.g. invalid input program), use as an assert() alternative. static NORETURN PRINTF void fail(const char* msg, ...); // Kernel error (e.g. wrong syscall return value). -static NORETURN PRINTF void error(const char* msg, ...); +NORETURN PRINTF void error(const char* msg, ...); // Just exit (e.g. due to temporal ENOMEM error). static NORETURN PRINTF void exitf(const char* msg, ...); // Print debug output, does not add \n at the end of msg as opposed to the previous functions. @@ -147,9 +147,9 @@ const uint64 binary_format_stroct = 4; const uint64 no_copyout = -1; static int running; -static uint32 completed; static bool collide; -static bool is_kernel_64_bit = true; +uint32 completed; +bool is_kernel_64_bit = true; ALIGNED(64 << 10) static char input_data[kMaxInput]; |
