aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-12-06 10:20:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-12-06 10:20:58 +0100
commit4906fbb698fe7ecd9b596a113d33c6a26f9d4c4a (patch)
tree3d145832b46416fd94cc9a12573dcfe5a51957f2 /executor/executor_linux.h
parentba97c611a36b7729d489ebca5f97183c2ba7a90a (diff)
executor: don't use static_assert
Not all gcc's everywhere support C++11 by default. We have some old on Travis.
Diffstat (limited to 'executor/executor_linux.h')
-rw-r--r--executor/executor_linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/executor_linux.h b/executor/executor_linux.h
index 8307fbef9..13d6a598e 100644
--- a/executor/executor_linux.h
+++ b/executor/executor_linux.h
@@ -34,8 +34,8 @@ struct uint64_aligned32 {
typedef kcov_remote_arg<uint64_aligned32, 0> kcov_remote_arg32;
typedef kcov_remote_arg<uint64_aligned64, 0> kcov_remote_arg64;
-static_assert(sizeof(kcov_remote_arg32) == 20, "bad kcov_remote_arg32 size");
-static_assert(sizeof(kcov_remote_arg64) == 24, "bad kcov_remote_arg64 size");
+typedef char kcov_remote_arg32_size[sizeof(kcov_remote_arg32) == 20 ? 1 : -1];
+typedef char kcov_remote_arg64_size[sizeof(kcov_remote_arg64) == 24 ? 1 : -1];
#define KCOV_INIT_TRACE32 _IOR('c', 1, uint32)
#define KCOV_INIT_TRACE64 _IOR('c', 1, uint64)