From c6316c087ee9d894e7905312bac1866609980217 Mon Sep 17 00:00:00 2001 From: slmistry Date: Thu, 10 Sep 2015 00:15:37 +0100 Subject: [PATCH] Resolve warning about incorrect function returns --- src/lib/openjp2/opj_manager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/openjp2/opj_manager.h b/src/lib/openjp2/opj_manager.h index b4cfd76a..45693734 100644 --- a/src/lib/openjp2/opj_manager.h +++ b/src/lib/openjp2/opj_manager.h @@ -91,7 +91,7 @@ static INLINE void* opj_manager_realloc(opj_manager_t manager, void* ptr, OPJ_SI } static INLINE void opj_manager_free(opj_manager_t manager, void* ptr) { - return manager->free_callback(ptr, manager->context); + manager->free_callback(ptr, manager->context); } static INLINE void* opj_manager_aligned_malloc(opj_manager_t manager, OPJ_SIZE_T size, OPJ_SIZE_T alignment) { @@ -99,7 +99,7 @@ static INLINE void* opj_manager_aligned_malloc(opj_manager_t manager, OPJ_SIZE_T } static INLINE void opj_manager_aligned_free(opj_manager_t manager, void* ptr) { - return manager->aligned_free_callback(ptr, manager->context); + manager->aligned_free_callback(ptr, manager->context); } #endif /* __OPJ_MANAGER_H */