diff options
author | Christophe Fergeau | 2011-03-11 20:38:57 +0100 |
---|---|---|
committer | Martin Szulecki | 2011-03-26 11:53:34 +0100 |
commit | 7eb76c0f7bd5710b7d37c1aac4dd9585d249c2db (patch) | |
tree | 40e6066fb03f14cd6977cda65a7d6e854ae7c3b2 /src | |
parent | e59a2efce6e1c4f09db01c418c0318ddee9bef49 (diff) | |
download | libimobiledevice-7eb76c0f7bd5710b7d37c1aac4dd9585d249c2db.tar.gz libimobiledevice-7eb76c0f7bd5710b7d37c1aac4dd9585d249c2db.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')
-rw-r--r-- | src/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index a40c249..e7d52fe 100644 --- a/src/debug.c +++ b/src/debug.c @@ -43,6 +43,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; @@ -70,6 +71,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, ...) { |