/pidgin/main: f56bbcbd5df9: Remove check for whether va_lists ca...

Elliott Sales de Andrade <[email protected]> Tue, 23 Aug 2016 19:45:07 -0400
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: f56bbcbd5df993055818bfa1c5157ced388746bc
Author:	 Elliott Sales de Andrade <[email protected]>
Date:	 2016-08-21 03:29 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/f56bbcbd5df9

Description:

Remove check for whether va_lists can be copied by value.

The test result is not used for anything.

diffstat:

 config.h.mingw |   3 ---
 configure.ac   |  24 ------------------------
 2 files changed, 0 insertions(+), 27 deletions(-)

diffs (47 lines):

diff --git a/config.h.mingw b/config.h.mingw
--- a/config.h.mingw
+++ b/config.h.mingw
@@ -438,9 +438,6 @@
 /* Use voice and video */
 /* #define USE_VV 1 */
 
-/* 'va_lists' cannot be copied as values */
-/* #define VA_COPY_AS_ARRAY 1 */
-
 /* Version number of package */
 #define VERSION "@VERSION@"
 #define DISPLAY_VERSION "@DISPLAY_VERSION@"
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -2130,30 +2130,6 @@ if test $ac_cv_struct_tm_gmtoff = yes; t
         AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
 fi
 
-AC_CACHE_CHECK([whether va_lists can be copied by value], ac_cv_va_val_copy,[
-	AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdarg.h>
-#include <stdlib.h>
-	void f (int i, ...) {
-	va_list args1, args2;
-	va_start (args1, i);
-	args2 = args1;
-	if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-	  exit (1);
-	va_end (args1); va_end (args2);
-	}
-	int main() {
-	  f (0, 42);
-	  return 0;
-	}]])],
-	[ac_cv_va_val_copy=yes],
-	[ac_cv_va_val_copy=no],
-	[ac_cv_va_val_copy=yes])
-])
-
-if test "x$ac_cv_va_val_copy" = "xno"; then
-	AC_DEFINE(VA_COPY_AS_ARRAY, 1, ['va_lists' cannot be copied as values])
-fi
-
 dnl #######################################################################
 dnl # Disable pixmap installation
 dnl #######################################################################

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits