mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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).
This commit is contained in:
parent
29cc9fc0ed
commit
5a705cfa90
@ -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,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user