summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2011-03-11 20:38:57 +0100
committerGravatar Martin Szulecki2011-03-12 03:13:21 +0100
commit14912f87c6dc2ebcc54771c92558652ae486b089 (patch)
tree5a38af361f71f2be3bb68cafdbc7676ff04dc971 /src/debug.c
parentadaa80a31a23d7663be751f4d589adbe5a5f3113 (diff)
downloadlibimobiledevice-14912f87c6dc2ebcc54771c92558652ae486b089.tar.gz
libimobiledevice-14912f87c6dc2ebcc54771c92558652ae486b089.tar.bz2
Wrap debug_print_line in #ifndef STRIP_DEBUG_CODE
This function is only called when STRIP_DEBUG_CODE isn't defined, so build is broken with -Wmissing-prototypes -Werror if it's not wrapped in #ifndef
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index f58ece7..26a9678 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -46,6 +46,7 @@ void idevice_set_debug_level(int level)
debug_level = level;
}
+#ifndef STRIP_DEBUG_CODE
static void debug_print_line(const char *func, const char *file, int line, const char *buffer)
{
char *str_time = NULL;
@@ -73,6 +74,7 @@ static void debug_print_line(const char *func, const char *file, int line, const
free (header);
}
+#endif
inline void debug_info_real(const char *func, const char *file, int line, const char *format, ...)
{