#include "list.h"
 #include "miscutil.h"
 
+#ifndef NDEBUG
 static int list_is_valid (const struct list *the_list);
-
+#endif
 
 /*********************************************************************
  *
 }
 
 
+#ifndef NDEBUG
 /*********************************************************************
  *
  * Function    :  list_is_valid
    return 1;
 #endif
 }
+#endif /* ndef NDEBUG */
+
 
 /*********************************************************************
  *