Fix alloc_size configure test.
This commit is contained in:
parent
0b8f0bc0a4
commit
92d72eeef0
@ -431,9 +431,8 @@ fi
|
|||||||
dnl Check for alloc_size attribute support.
|
dnl Check for alloc_size attribute support.
|
||||||
SAVED_CFLAGS="${CFLAGS}"
|
SAVED_CFLAGS="${CFLAGS}"
|
||||||
JE_CFLAGS_APPEND([-Werror])
|
JE_CFLAGS_APPEND([-Werror])
|
||||||
JE_COMPILABLE([alloc_size attribute], [],
|
JE_COMPILABLE([alloc_size attribute], [#include <stdlib.h>],
|
||||||
[#include <stdlib.h>
|
[void *foo(size_t size) __attribute__((alloc_size(1)));],
|
||||||
static void *foo(size_t size) __attribute__((alloc_size(1)));],
|
|
||||||
[je_cv_alloc_size])
|
[je_cv_alloc_size])
|
||||||
CFLAGS="${SAVED_CFLAGS}"
|
CFLAGS="${SAVED_CFLAGS}"
|
||||||
if test "x${je_cv_alloc_size}" = "xyes" ; then
|
if test "x${je_cv_alloc_size}" = "xyes" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user