From 430301a436a5526961c95810cd1d9057956a6d08 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 25 Feb 2024 04:49:11 +0300 Subject: Suppress several warnings Signed-off-by: Alexander Golubev --- src/imageutils/jpegcontent.cpp | 1 - src/imageutils/transupp.c | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/imageutils') diff --git a/src/imageutils/jpegcontent.cpp b/src/imageutils/jpegcontent.cpp index 0effc16..d94a32e 100644 --- a/src/imageutils/jpegcontent.cpp +++ b/src/imageutils/jpegcontent.cpp @@ -195,7 +195,6 @@ struct JPEGContent::Private { } bool readSize() { struct jpeg_decompress_struct srcinfo; - jpeg_saved_marker_ptr mark; // Init JPEG structs JPEGErrorManager errorManager; diff --git a/src/imageutils/transupp.c b/src/imageutils/transupp.c index 099fade..0ede0db 100644 --- a/src/imageutils/transupp.c +++ b/src/imageutils/transupp.c @@ -2329,6 +2329,7 @@ jtransform_adjust_parameters (j_decompress_ptr srcinfo, jvirt_barray_ptr *src_coef_arrays, jpeg_transform_info *info) { + (void) srcinfo; /* unused */ /* If force-to-grayscale is requested, adjust destination parameters */ if (info->force_grayscale) { /* We use jpeg_set_colorspace to make sure subsidiary settings get fixed @@ -2455,6 +2456,8 @@ jtransform_execute_transformation (j_decompress_ptr srcinfo, GLOBAL(void) jcopy_markers_setup (j_decompress_ptr srcinfo, JCOPY_OPTION option) { + (void) srcinfo; /* maybe unused */ + (void) option; /* maybe unused */ #ifdef SAVE_MARKERS_SUPPORTED int m; @@ -2481,6 +2484,7 @@ GLOBAL(void) jcopy_markers_execute (j_decompress_ptr srcinfo, j_compress_ptr dstinfo, JCOPY_OPTION option) { + (void) option; /* unused */ jpeg_saved_marker_ptr marker; /* In the current implementation, we don't actually need to examine the @@ -2522,4 +2526,4 @@ jcopy_markers_execute (j_decompress_ptr srcinfo, j_compress_ptr dstinfo, } } -#endif // JPEG_LIB_VERSION >= 80 \ No newline at end of file +#endif // JPEG_LIB_VERSION >= 80 -- cgit v1.2.1