diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-18 18:32:21 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-18 18:32:21 +0000 |
commit | 147447a284b2a8067e2028cd3f8ac8c41c7f771a (patch) | |
tree | b61a07a9a88e7e5fccaee5005591d7f78aa44763 /firmware | |
parent | 0f6b5f03d9e11ec896b0d86d2027471c12a655eb (diff) |
don't let logf() and DEBUGF() be empty statements
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26146 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/debug.h | 4 | ||||
-rw-r--r-- | firmware/export/logf.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/debug.h b/firmware/export/debug.h index 314b495dd2..9d85590136 100644 --- a/firmware/export/debug.h +++ b/firmware/export/debug.h @@ -45,8 +45,8 @@ void breakpoint(void); #define DEBUGF debugf #define LDEBUGF debugf #else -#define DEBUGF(...) -#define LDEBUGF(...) +#define DEBUGF(...) do { } while(0) +#define LDEBUGF(...) do { } while(0) #endif #endif diff --git a/firmware/export/logf.h b/firmware/export/logf.h index 16666449d4..1aca29d5ba 100644 --- a/firmware/export/logf.h +++ b/firmware/export/logf.h @@ -51,5 +51,5 @@ void _logf(const char *format, ...) ATTRIBUTE_PRINTF(1, 2); /* Allow fine tuning (per file) of the logf output */ #ifndef LOGF_ENABLE #undef logf -#define logf(...) +#define logf(...) do { } while(0) #endif |