[libgxps/wip/nacho/visibility: 3/5] images: ifdef _jpeg_color_space_name



commit 00b65cb96520afb2056b2bc5080685b8a195acf1
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date:   Thu Sep 8 14:35:28 2016 +0200

    images: ifdef _jpeg_color_space_name
    
    This method is only used for debug
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771057

 libgxps/gxps-images.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgxps/gxps-images.c b/libgxps/gxps-images.c
index 1ced845..a2108ce 100644
--- a/libgxps/gxps-images.c
+++ b/libgxps/gxps-images.c
@@ -350,6 +350,7 @@ struct _jpeg_src_mgr {
        jmp_buf setjmp_buffer;
 };
 
+#ifdef GXPS_ENABLE_DEBUG
 static const gchar *
 _jpeg_color_space_name (const J_COLOR_SPACE jpeg_color_space)
 {
@@ -363,6 +364,7 @@ _jpeg_color_space_name (const J_COLOR_SPACE jpeg_color_space)
        default: return "invalid";
        }
 }
+#endif
 
 static void
 _jpeg_init_source (j_decompress_ptr cinfo)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]