From 491919b14f915df3e3b76960582e0dbb8427e259 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 15 May 2019 13:45:42 +0200 Subject: pkg/compiler: work around 0-array-size errors due to missing consts A const can be used as array size. Then if the const is not present on all arches, compiler will produce an error about 0-sized-array. There is no easy way to work around this for a user. Use value of 1 for missing consts. It's just a bit safer. --- executor/syscalls.h | 1 + 1 file changed, 1 insertion(+) (limited to 'executor/syscalls.h') diff --git a/executor/syscalls.h b/executor/syscalls.h index d42deeeca..8c6e6f0fb 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -15419,6 +15419,7 @@ const call_t syscalls[] = { {"fallback$1", 0}, {"foo$any0", 0}, {"foo$anyres", 0}, + {"foo$arch_specific_const_as_array_size", 0}, {"foo$fmt0", 0}, {"foo$fmt1", 0}, {"foo$fmt2", 0}, -- cgit mrf-deployment