Changeset 4559:62d8db8c7157 in nginx


Ignore:
Timestamp:
03/27/12 16:44:52 (8 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4560
Message:

Fixed more gcc46 warnings in configure tests.

Steps to reproduce:

./configure --with-cc="gcc46" --with-cc-opt="-Wall -Werror -O2"

Location:
auto
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • auto/lib/pcre/conf

    r4412 r4559  
    9999        ngx_feature_path=
    100100        ngx_feature_libs="-lpcre"
    101         ngx_feature_test="pcre *re; re = pcre_compile(NULL, 0, NULL, 0, NULL)"
     101        ngx_feature_test="pcre *re;
     102                          re = pcre_compile(NULL, 0, NULL, 0, NULL);
     103                          if (re == NULL) return 1"
    102104        . auto/feature
    103105
  • auto/os/solaris

    r4412 r4559  
    3636ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
    3737                  size_t sent; ssize_t n;
    38                   n = sendfilev(fd, vec, 1, &sent)"
     38                  n = sendfilev(fd, vec, 1, &sent);
     39                  if (n == -1) return 1"
    3940. auto/feature
    4041
  • auto/types/typedef

    r4543 r4559  
    2929
    3030int main() {
    31     $ngx_try i;
    32     i = 0;
    33     return 0;
     31    $ngx_try i = 0;
     32    return (int) i;
    3433}
    3534
  • auto/types/uintptr_t

    r4543 r4559  
    1616
    1717int main() {
    18     uintptr_t i;
    19     i = 0;
    20     return 0;
     18    uintptr_t i = 0;
     19    return (int) i;
    2120}
    2221
  • auto/unix

    r4550 r4559  
    3434ngx_feature_path=
    3535ngx_feature_libs=
    36 ngx_feature_test="int  n, dp; struct pollfd  pl;
    37                   dp = 0;
     36ngx_feature_test="int  n; struct pollfd  pl;
    3837                  pl.fd = 0;
    3938                  pl.events = 0;
    4039                  pl.revents = 0;
    41                   n = poll(&pl, 1, 0)"
     40                  n = poll(&pl, 1, 0);
     41                  if (n == -1) return 1"
    4242. auto/feature
    4343
     
    5858                  dvp.dp_nfds = 0;
    5959                  dvp.dp_timeout = 0;
    60                   n = ioctl(dp, DP_POLL, &dvp)"
     60                  n = ioctl(dp, DP_POLL, &dvp);
     61                  if (n == -1) return 1"
    6162. auto/feature
    6263
     
    358359                  ti.tcpi_snd_cwnd = 0;
    359360                  ti.tcpi_rcv_space = 0;
    360                   getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)"
     361                  getsockopt(0, IPPROTO_TCP, TCP_INFO, &ti, &optlen)"
    361362. auto/feature
    362363
     
    513514ngx_feature_path=
    514515ngx_feature_libs=
    515 ngx_feature_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0)"
     516ngx_feature_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0);
     517                  if (n == -1) return 1"
    516518. auto/feature
    517519
     
    523525ngx_feature_path=
    524526ngx_feature_libs=
    525 ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)"
     527ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0);
     528                  if (n == -1) return 1"
    526529. auto/feature
    527530
     
    597600ngx_feature_path=
    598601ngx_feature_libs=
    599 ngx_feature_test="void *p; int n; n = posix_memalign(&p, 4096, 4096)"
     602ngx_feature_test="void *p; int n; n = posix_memalign(&p, 4096, 4096);
     603                  if (n != 0) return 1"
    600604. auto/feature
    601605
     
    608612ngx_feature_path=
    609613ngx_feature_libs=
    610 ngx_feature_test="void *p; p = memalign(4096, 4096)"
     614ngx_feature_test="void *p; p = memalign(4096, 4096);
     615                  if (p == NULL) return 1"
    611616. auto/feature
    612617
     
    695700ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
    696701ngx_feature_run=no
    697 ngx_feature_incs="#include <sys/socket.h>"
    698 ngx_feature_path=
    699 ngx_feature_libs=
    700 ngx_feature_test="struct msghdr  msg; msg.msg_control = NULL"
     702ngx_feature_incs="#include <sys/socket.h>
     703                  #include <stdio.h>"
     704ngx_feature_path=
     705ngx_feature_libs=
     706ngx_feature_test="struct msghdr  msg; msg.msg_control = NULL;
     707                  printf(\"%d\", (int) msg.msg_control)"
    701708. auto/feature
    702709
     
    706713ngx_feature_run=no
    707714ngx_feature_incs="#include <sys/ioctl.h>
     715                  #include <stdio.h>
    708716                  $NGX_INCLUDE_SYS_FILIO_H"
    709717ngx_feature_path=
    710718ngx_feature_libs=
    711 ngx_feature_test="int i; i = FIONBIO"
     719ngx_feature_test="int i = FIONBIO; printf(\"%d\", i)"
    712720. auto/feature
    713721
     
    716724ngx_feature_name="NGX_HAVE_GMTOFF"
    717725ngx_feature_run=no
    718 ngx_feature_incs="#include <time.h>"
    719 ngx_feature_path=
    720 ngx_feature_libs=
    721 ngx_feature_test="struct tm  tm; tm.tm_gmtoff = 0"
     726ngx_feature_incs="#include <time.h>
     727                  #include <stdio.h>"
     728ngx_feature_path=
     729ngx_feature_libs=
     730ngx_feature_test="struct tm  tm; tm.tm_gmtoff = 0;
     731                  printf(\"%d\", (int) tm.tm_gmtoff)"
    722732. auto/feature
    723733
     
    726736ngx_feature_name="NGX_HAVE_D_NAMLEN"
    727737ngx_feature_run=no
    728 ngx_feature_incs="#include <dirent.h>"
    729 ngx_feature_path=
    730 ngx_feature_libs=
    731 ngx_feature_test="struct dirent  dir; dir.d_namlen = 0"
     738ngx_feature_incs="#include <dirent.h>
     739                  #include <stdio.h>"
     740ngx_feature_path=
     741ngx_feature_libs=
     742ngx_feature_test="struct dirent  dir; dir.d_namlen = 0;
     743                  printf(\"%d\", (int) dir.d_namlen)"
    732744. auto/feature
    733745
     
    736748ngx_feature_name="NGX_HAVE_D_TYPE"
    737749ngx_feature_run=no
    738 ngx_feature_incs="#include <dirent.h>"
    739 ngx_feature_path=
    740 ngx_feature_libs=
    741 ngx_feature_test="struct dirent  dir; dir.d_type = DT_REG"
     750ngx_feature_incs="#include <dirent.h>
     751                  #include <stdio.h>"
     752ngx_feature_path=
     753ngx_feature_libs=
     754ngx_feature_test="struct dirent  dir; dir.d_type = DT_REG;
     755                  printf(\"%d\", (int) dir.d_type)"
    742756. auto/feature
    743757
Note: See TracChangeset for help on using the changeset viewer.