From f9147b0836f6cd4196dbc25509e8763435cc857a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 25 Jun 2020 21:29:13 +0200 Subject: executor: don't use static_assert Use existing way of doing size checks, otherwise akaros build is broken: https://github.com/google/syzkaller/pull/1868/checks?check_run_id=808613616 --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/executor.cc b/executor/executor.cc index 1a2b641ff..2ce50661d 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -284,7 +284,7 @@ struct kcov_comparison_t { bool operator<(const struct kcov_comparison_t& other) const; }; -static_assert(sizeof(kcov_comparison_t) == 4 * sizeof(uint64), "invalid size of kcov_comparison_t"); +typedef char kcov_comparison_size[sizeof(kcov_comparison_t) == 4 * sizeof(uint64) ? 1 : -1]; struct feature_t { const char* name; -- cgit mrf-deployment