From 5a705cfa900b18c206723bf1218dff44aaef3975 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 18 Jan 2018 11:28:11 +0100 Subject: [PATCH] Don't cast an initializer to the struct type in power_insn_available.c. In C99 mode casting the initializer to the struct type will cause gcc to report an error like: power_insn_available.c:38:1: error: initializer element is not constant Simply removing the unnecessary cast fixes this (and is also valid C90). --- tests/power_insn_available.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/power_insn_available.c b/tests/power_insn_available.c index bcd079885a..3f9984df8d 100644 --- a/tests/power_insn_available.c +++ b/tests/power_insn_available.c @@ -33,7 +33,7 @@ static void unsup_insn_handler(int signal_number) longjmp(unsup_insn_env, 1); return; } -static struct sigaction unsup_insn_action = (struct sigaction) { +static struct sigaction unsup_insn_action = { .sa_handler = &unsup_insn_handler, }; -- 2.47.3