Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Properly turn off sanity checking in non-debug mode.

  • Loading branch information...
commit e38f7e721a88cfd64bc1534d229d326bcb081d9c 1 parent 86fccf5
Steven Smith authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 shmem_pipe_thr.c
View
7 shmem_pipe_thr.c
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.