Skip to content

Commit 0e3fbfd

Browse files
committed
Revert "[sanitizer_common] Suppress warning of cast from SignalHandlerType to sa_sigaction_t"
This reverts commit 9d79589 because it failed to suppress the warning.
1 parent 0d08282 commit 0e3fbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void MaybeInstallSigaction(int signum,
216216

217217
struct sigaction sigact;
218218
internal_memset(&sigact, 0, sizeof(sigact));
219-
sigact.sa_sigaction = (sa_sigaction_t)(void (*)(void))handler;
219+
sigact.sa_sigaction = (sa_sigaction_t)handler;
220220
// Do not block the signal from being received in that signal's handler.
221221
// Clients are responsible for handling this correctly.
222222
sigact.sa_flags = SA_SIGINFO | SA_NODEFER;

0 commit comments

Comments
 (0)