From: Vitaly Buka Date: Fri, 10 Nov 2017 03:13:42 +0000 (+0000) Subject: [sanitizer] Fix "cast from 'const void *' to 'sigaction *'" on Darwin X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=112b2d1625a740641c069e5b65ade2002f737061;p=platform%2Fupstream%2Fllvm.git [sanitizer] Fix "cast from 'const void *' to 'sigaction *'" on Darwin llvm-svn: 317866 --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 7a93c11..284b6cf 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -185,7 +185,7 @@ uptr internal_getpid() { int internal_sigaction(int signum, const void *act, void *oldact) { return sigaction(signum, - (struct sigaction *)act, (struct sigaction *)oldact); + (const struct sigaction *)act, (struct sigaction *)oldact); } void internal_sigfillset(__sanitizer_sigset_t *set) { sigfillset(set); }