[trunk] Remove warnings about unused values introduced in r2710
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 14 Mar 2014 08:44:53 +0000 (08:44 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 14 Mar 2014 08:44:53 +0000 (08:44 +0000)
Thanks to Matthieu Darbois for patch
Fixes issue 290

src/lib/openjp2/t2.c

index 56d5ee997ca0c6e9f1ad35e06b0ebec25eda4bc3..82d7a78f6bf0f08d61976349207e77c028180932 100644 (file)
@@ -315,7 +315,13 @@ OPJ_BOOL opj_t2_encode_packets( opj_t2_t* p_t2,
 #if 0
 #define JAS_FPRINTF fprintf
 #else
-#define JAS_FPRINTF
+/* issue 290 */
+static void opj_null_jas_fprintf(FILE* file, const char * format, ...)
+{
+  (void)file;
+  (void)format;
+}
+#define JAS_FPRINTF opj_null_jas_fprintf
 #endif
 
 OPJ_BOOL opj_t2_decode_packets( opj_t2_t *p_t2,