Commit b03efc2
committed
[runtime] Fix -Wcast-function-type-mismatch warnings; NFC (3/4)
__abort_sig_hand() resets signal handlers before printing an error message
and calling abort(). The code used to set the sa_sigaction field to SIG_DFL,
requiring an explicit cast which now causes a warning. It is actually not
necessary to use sa_sigaction in this case; setting sa_handler to SIG_DFL
is the idiomatic way which also avoids the warning.1 parent 4a00056 commit b03efc2
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | | - | |
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
| |||
0 commit comments