diff src/number-gmp.h @ 2956:ee35a8fdcfcd

[xemacs-hg @ 2005-09-27 05:29:41 by ben] fix compilation warnings text.c, event-Xt.c, lisp.h, number-gmp.c, number-gmp.h: Fix compilation warnings. A couple of changes of new -> new_, 'foo -> `foo'.
author ben
date Tue, 27 Sep 2005 05:29:45 +0000
parents 9f70af3ac939
children 2fc0e2f18322
line wrap: on
line diff
--- a/src/number-gmp.h	Mon Sep 26 22:19:05 2005 +0000
+++ b/src/number-gmp.h	Tue Sep 27 05:29:45 2005 +0000
@@ -35,7 +35,15 @@
 #undef __GNUC__
 #endif
 
+#ifdef _MSC_VER
+/* "unary minus operator applied to unsigned type, result still unsigned":
+   Occurs on line 1596 of gmp.h in version 4.1.4. */
+#pragma warning ( disable : 4146 )
+#endif
 #include <gmp.h>
+#ifdef _MSC_VER
+#pragma warning ( default : 4146 )
+#endif
 
 typedef mpz_t bignum;
 typedef mpq_t ratio;