From 4906fbb698fe7ecd9b596a113d33c6a26f9d4c4a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Dec 2019 10:20:58 +0100 Subject: executor: don't use static_assert Not all gcc's everywhere support C++11 by default. We have some old on Travis. --- executor/executor_linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor') 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 kcov_remote_arg32; typedef kcov_remote_arg 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) -- cgit mrf-deployment