]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/debug.h
configure.ac: Add --enable-warnings.
[coloredstderr/coloredstderr.git] / src / debug.h
index 7425ce475f8c49f475f4dba01d48408ee65f547b..4a7c00bc107949f2a9ab5b7aaea3c3c1452a429e 100644 (file)
@@ -41,6 +41,7 @@ static void debug_write(int fd, int first_call, char const *format, va_list ap)
     real_close(fd);
 }
 
+#ifdef DEBUG
 static void debug(char const *format, ...) {
     va_list ap;
 
@@ -63,6 +64,7 @@ static void debug(char const *format, ...) {
 
     errno = saved_errno;
 }
+#endif
 
 static void warning(char const *format, ...) {
     va_list ap;