diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-06-25 21:29:13 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-25 21:29:13 +0200 |
| commit | f9147b0836f6cd4196dbc25509e8763435cc857a (patch) | |
| tree | 63dd0f76c7c95f54ba932004460337ae3a4c7e39 | |
| parent | ac40b8cc849c3f4663295a1cc4d0a88fc400f5ef (diff) | |
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
| -rw-r--r-- | executor/executor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
