diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2012-03-15 20:39:38 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2012-03-15 20:39:38 +0000 |
| commit | 4489fa8893518cc63ddcff221d12572f05ed7b1c (patch) | |
| tree | ea629a2febbfe3095644871a5915dc0ac2de3c89 /auto/types/uintptr_t | |
| parent | 5d1d368cf4e027335672d07afe11585e999c1fd7 (diff) | |
| download | nginx-4489fa8893518cc63ddcff221d12572f05ed7b1c.tar.gz nginx-4489fa8893518cc63ddcff221d12572f05ed7b1c.tar.bz2 | |
Fixed compilation warnings in configuration C tests.
Based on a patch by Piotr Sikora.
Diffstat (limited to 'auto/types/uintptr_t')
| -rw-r--r-- | auto/types/uintptr_t | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/auto/types/uintptr_t b/auto/types/uintptr_t index 07f7e7d7d..2a00b493c 100644 --- a/auto/types/uintptr_t +++ b/auto/types/uintptr_t @@ -4,8 +4,8 @@ echo $ngx_n "checking for uintptr_t ...$ngx_c" -echo >> $NGX_ERR -echo "checking for uintptr_t" >> $NGX_ERR +echo >> $NGX_AUTOCONF_ERR +echo "checking for uintptr_t" >> $NGX_AUTOCONF_ERR found=no @@ -15,13 +15,17 @@ cat << END > $NGX_AUTOTEST.c $NGX_INTTYPES_H int main() { - uintptr_t i = 0; + uintptr_t i; + i = 0; return 0; } END -eval "$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1" +ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \ + -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT" + +eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" if [ -x $NGX_AUTOTEST ]; then echo " uintptr_t found" |
