Austin English : configure: Remove some unused but set variables (LLVM/ Clang).
Alexandre Julliard
julliard at winehq.org
Tue Jun 14 11:57:47 CDT 2011
Module: wine
Branch: master
Commit: 8521ebe79df39730ee62d518fde3751f45606061
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8521ebe79df39730ee62d518fde3751f45606061
Author: Austin English <austinenglish at gmail.com>
Date: Mon Jun 13 21:26:40 2011 -0700
configure: Remove some unused but set variables (LLVM/Clang).
---
configure | 12 ++++++------
configure.ac | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/configure b/configure
index 1bdae44..70d0202 100755
--- a/configure
+++ b/configure
@@ -10918,7 +10918,7 @@ if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
int
main ()
{
-int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
+snd_pcm_hw_params_get_access_mask(NULL, NULL)
;
return 0;
}
@@ -13700,12 +13700,12 @@ main ()
struct hostent *result;
char *buf=0;
int bufsize=0;
- int res,errnr;
+ int errnr;
char *addr=0;
int addrlen=0;
int addrtype=0;
- res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
- res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
+ gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
+ gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
;
return 0;
@@ -14281,7 +14281,7 @@ else
int
main ()
{
-float f = 0.0; int i=isinf(f)
+float f = 0.0; return isinf(f)
;
return 0;
}
@@ -14314,7 +14314,7 @@ else
int
main ()
{
-float f = 0.0; int i=isnan(f)
+float f = 0.0; return isnan(f)
;
return 0;
}
diff --git a/configure.ac b/configure.ac
index 9db37c7..ba36dda 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1515,7 +1515,7 @@ then
#include <alsa/asoundlib.h>
#elif defined(HAVE_SYS_ASOUNDLIB_H)
#include <sys/asoundlib.h>
-#endif]], [[int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
+#endif]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
[ALSALIBS="-lasound"])])
fi
@@ -2150,12 +2150,12 @@ AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style],
struct hostent *result;
char *buf=0;
int bufsize=0;
- int res,errnr;
+ int errnr;
char *addr=0;
int addrlen=0;
int addrtype=0;
- res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
- res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
+ gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
+ gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
]])],[wine_cv_linux_gethostbyname_r_6=yes],[wine_cv_linux_gethostbyname_r_6=no
])
)
@@ -2328,7 +2328,7 @@ fi
dnl Check for isinf
AC_CACHE_CHECK([for isinf], ac_cv_have_isinf,
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; int i=isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
if test "$ac_cv_have_isinf" = "yes"
then
AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.])
@@ -2336,7 +2336,7 @@ fi
dnl Check for isnan
AC_CACHE_CHECK([for isnan], ac_cv_have_isnan,
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; int i=isnan(f)]])],[ac_cv_have_isnan="yes"],[ac_cv_have_isnan="no"]))
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isnan(f)]])],[ac_cv_have_isnan="yes"],[ac_cv_have_isnan="no"]))
if test "$ac_cv_have_isnan" = "yes"
then
AC_DEFINE(HAVE_ISNAN, 1, [Define to 1 if you have the `isnan' function.])
More information about the wine-cvs
mailing list