Permalink
Browse files

* map.c: _cnm_return_val_if_overflow() should be a no-op unless DEBU…

…G is

    defined.  "Fixes" false positives pending further investigation.

svn path=/branches/mono-1-2/mono/; revision=68773
  • Loading branch information...
1 parent d1e7a30 commit 0f9718c237af839c290a4c494a34d78190b99dd5 Jonathan Pryor committed Nov 30, 2006
Showing with 11 additions and 0 deletions.
  1. +5 −0 support/ChangeLog
  2. +6 −0 support/map.c
View
@@ -1,3 +1,8 @@
+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-17 Jonathan Pryor <jonpryor@vt.edu>
* map.c: Flush (fix FromFilePermissions for SuppressFlags-marked values).
View
@@ -204,6 +204,7 @@
#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; \
@@ -214,6 +215,11 @@
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)
{

0 comments on commit 0f9718c

Please sign in to comment.