diff src/floatfns.c @ 4828:f31c12360354

fix warnings
author Ben Wing <ben@xemacs.org>
date Sun, 27 Dec 2009 20:16:19 -0600
parents fcc7e89d5e68
children 6c0bb4d2c23a
line wrap: on
line diff
--- a/src/floatfns.c	Sat Dec 26 21:04:44 2009 -0600
+++ b/src/floatfns.c	Sun Dec 27 20:16:19 2009 -0600
@@ -1761,8 +1761,19 @@
   Lisp_Object res0;
   unsigned long prec = bigfloat_get_prec (number);
 
+#if 0
+  /* This causes the following GCC warning:
+
+  /xemacs/latest-fix/src/floatfns.c:1764: warning: dereferencing type-punned pointer will break strict-aliasing rules
+
+     and furthermore, it's a useless assert, since `number' is stored on
+     the stack and so its address can never be the same as `scratch_bigfloat'
+     or `scratch_bigfloat2', which are stored in the data segment.
+
+  -- ben */
   assert ((bigfloat *)(&number) != (bigfloat *)&scratch_bigfloat
 	  && (bigfloat *)(&number) != (bigfloat *)(&scratch_bigfloat2));
+#endif
 
   bigfloat_set_prec (scratch_bigfloat, prec);
   bigfloat_set_prec (scratch_bigfloat2, prec);