Permalink
Browse files

Properly turn off sanity checking in non-debug mode.

  • Loading branch information...
1 parent 86fccf5 commit e38f7e721a88cfd64bc1534d229d326bcb081d9c Steven Smith committed Nov 22, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 shmem_pipe_thr.c
View
@@ -58,6 +58,7 @@ struct alloc_node {
unsigned long end;
};
+#ifndef NDEBUG
static void
sanity_check(const struct shmem_pipe *sp)
{
@@ -95,6 +96,12 @@ sanity_check(const struct shmem_pipe *sp)
if (!found_lf)
assert(!sp->last_freed_node);
}
+#else
+static void
+sanity_check(const struct shmem_pipe *sp)
+{
+}
+#endif
static unsigned
alloc_shared_space(struct shmem_pipe *sp, unsigned size)

0 comments on commit e38f7e7

Please sign in to comment.