Skip to content

Commit 5a705cf

Browse files
author
Mark Wielaard
committed
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).
1 parent 29cc9fc commit 5a705cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/power_insn_available.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void unsup_insn_handler(int signal_number)
3333
longjmp(unsup_insn_env, 1);
3434
return;
3535
}
36-
static struct sigaction unsup_insn_action = (struct sigaction) {
36+
static struct sigaction unsup_insn_action = {
3737
.sa_handler = &unsup_insn_handler,
3838
};
3939

0 commit comments

Comments
 (0)