defined. "Fixes" false positives pending further investigation.
svn path=/trunk/mono/; revision=68770
+2006-11-30 Jonathan Pryor <jonpryor@vt.edu>
+
+ * map.c: _cnm_return_val_if_overflow() should be a no-op unless DEBUG is
+ defined. "Fixes" false positives pending further investigation.
+
2006-11-18 Miguel de Icaza <miguel@novell.com>
* serial.c (poll_serial): Do not report an error for EINTR.
#define _cnm_dump_(to_t, from) do {} while (0)
#endif
+#ifdef DEBUG
#define _cnm_return_val_if_overflow(to_t,from,val) G_STMT_START { \
gint64 sf = (gint64) from; \
guint64 uf = (guint64) from; \
return (val); \
} \
} G_STMT_END
+#else /* !def DEBUG */
+/* don't do an overflow checking */
+#define _cnm_return_val_if_overflow(to_t,from,val) G_STMT_START { \
+ } G_STMT_END
+#endif /* def DEBUG */
int Mono_Posix_FromAccessModes (int x, int *r)
{