mirror of
https://github.com/php/php-src.git
synced 2024-09-21 01:47:25 +00:00
Autotools: Fix CS in undefined sanitizer check (#15892)
To prevent possible unused warnings turning into false errors.
This commit is contained in:
parent
d5b3ffa762
commit
796eba65e7
@ -1526,10 +1526,11 @@ AS_VAR_IF([PHP_UNDEFINED_SANITIZER], [yes],
|
||||
AC_CACHE_CHECK([whether to add -fno-sanitize=function],
|
||||
[php_cv_ubsan_no_function],
|
||||
[AC_RUN_IFELSE([AC_LANG_SOURCE([
|
||||
void foo(char *string) {}
|
||||
void foo(char *string) { (void)string; }
|
||||
int main(void) {
|
||||
void (*f)(void *) = (void (*)(void *))foo;
|
||||
f("foo");
|
||||
return 0;
|
||||
}
|
||||
])],
|
||||
[php_cv_ubsan_no_function=no],
|
||||
|
Loading…
Reference in New Issue
Block a user