]> git.refcnt.org Git - colorize.git/commitdiff
Include print_tstamp() under DEBUG only
authorSteven Schubiger <stsc@refcnt.org>
Mon, 25 Mar 2019 21:02:24 +0000 (22:02 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Mon, 25 Mar 2019 21:02:24 +0000 (22:02 +0100)
colorize.c

index 59cab41c7ae8ae911d337431b9db08470ebbf1cc..356fc011d7a678563dc1b68d7de68f46e5eb0360 100644 (file)
@@ -253,7 +253,9 @@ static char *exclude;
 
 static const char *program_name;
 
+#if DEBUG
 static void print_tstamp (FILE *);
+#endif
 static void process_opts (int, char **);
 static void process_opt_attr (const char *);
 static void write_attr (const struct attr *, unsigned int *);
@@ -372,6 +374,7 @@ main (int argc, char **argv)
     exit (EXIT_SUCCESS);
 }
 
+#if DEBUG
 static void
 print_tstamp (FILE *log)
 {
@@ -396,6 +399,7 @@ print_tstamp (FILE *log)
       fprintf (log, "=");
     fprintf (log, "\n");
 }
+#endif
 
 #define PRINT_HELP_EXIT() \
     print_help ();        \