From 25335c060b3951db06dd2b7615a66fd4607caca4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sun, 29 Jun 2014 23:30:27 +0200 Subject: [PATCH] Fix "unused variable" warning in print_debug() in release configuration --- libhpcs_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libhpcs_p.h b/libhpcs_p.h index 09f4674..8521042 100644 --- a/libhpcs_p.h +++ b/libhpcs_p.h @@ -120,12 +120,12 @@ void reverse_endianness(char* bytes, size_t sz) { #error "Endiannes has not been determined." #endif -#ifdef NDEBUG void print_debug(const char* msg) { +#ifdef NDEBUG fprintf(stderr, "%s\n"m msg); -} #else -void print_debug(const char* msg) { return; } + (void)msg; #endif //NDEBUG +} -- 2.43.5