Browse Source

Don't compile debug _dump.c code

Serj Kalichev 11 years ago
parent
commit
b306e0bf13

+ 1 - 1
Makefile.am

@@ -9,7 +9,7 @@ if DEBUG
   DEBUG_CFLAGS = -DDEBUG
 endif
 
-AM_CFLAGS = -pedantic -Wall $(DEBUG_CFLAGS)
+AM_CFLAGS = -Wall $(DEBUG_CFLAGS)
 #AM_CFLAGS = -ansi -pedantic -Werror -Wall -D_POSIX_C_SOURCE=199309 -DVERSION=$(VERSION) $(DEBUG_CFLAGS)
 
 bin_PROGRAMS =

+ 4 - 0
clish/action/action_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * action_dump.c
  */
@@ -25,3 +27,5 @@ void clish_action_dump(const clish_action_t *this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/command/command_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * command_dump.c
  */
@@ -34,3 +36,5 @@ void clish_command_dump(const clish_command_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/config/config_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * config_dump.c
  */
@@ -36,3 +38,5 @@ void clish_config_dump(const clish_config_t *this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/hotkey/hotkey_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * hotkey_dump.c
  */
@@ -28,3 +30,5 @@ void clish_hotkeyv_dump(const clish_hotkeyv_t *this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/nspace/nspace_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * nspace_dump.c
  */
@@ -25,3 +27,5 @@ void clish_nspace_dump(const clish_nspace_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/param/param_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * param_dump.c
  */
@@ -50,3 +52,5 @@ void clish_param_dump(const clish_param_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/pargv/pargv_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * pargv_dump.c
  */
@@ -31,3 +33,5 @@ void clish_pargv_dump(const clish_pargv_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/plugin/plugin_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * plugin_dump.c
  */
@@ -72,3 +74,5 @@ void clish_plugin_dump(const clish_plugin_t *this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/ptype/ptype_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * ptype_dump.c
  */
@@ -20,3 +22,5 @@ void clish_ptype_dump(clish_ptype_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/shell/shell_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * shell_dump.c
  */
@@ -42,3 +44,5 @@ void clish_shell_dump(clish_shell_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/var/var_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * var_dump.c
  */
@@ -22,3 +24,5 @@ void clish_var_dump(const clish_var_t *this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
clish/view/view_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * view_dump.c
  */
@@ -33,3 +35,5 @@ void clish_view_dump(clish_view_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 4 - 0
konf/query/query_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 #include "private.h"
 #include "lub/dump.h"
 
@@ -46,3 +48,5 @@ void konf_query_dump(konf_query_t *this)
 
 	lub_dump_undent();
 }
+
+#endif /* DEBUG */

+ 4 - 0
konf/tree/tree_dump.c

@@ -1,3 +1,5 @@
+#ifdef DEBUG
+
 /*
  * conf_dump.c
  */
@@ -35,3 +37,5 @@
 } */
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */

+ 5 - 0
lub/bintree/bintree_dump.c

@@ -1,6 +1,9 @@
+#ifdef DEBUG
+
 /*
  * bintree_dump.c
  */
+
 #include <stdio.h>
 #include "private.h"
 
@@ -27,3 +30,5 @@ void lub_bintree_dump(lub_bintree_t * this)
 }
 
 /*--------------------------------------------------------- */
+
+#endif /* DEBUG */