From b227c190d7875d57fb608df60693815e5ea97c96 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 3 Feb 2008 10:29:10 +0000 Subject: [PATCH] Prevent warnings about unused parameters. git-svn-id: http://svn.voria.com/code@1562 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_mng/trgt_mng.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/synfig-core/trunk/src/modules/mod_mng/trgt_mng.cpp b/synfig-core/trunk/src/modules/mod_mng/trgt_mng.cpp index ad98838..5eb0844 100644 --- a/synfig-core/trunk/src/modules/mod_mng/trgt_mng.cpp +++ b/synfig-core/trunk/src/modules/mod_mng/trgt_mng.cpp @@ -68,13 +68,13 @@ mng_alloc_proc(mng_size_t size) } static void MNG_DECL -mng_free_proc(mng_ptr ptr, mng_size_t size) +mng_free_proc(mng_ptr ptr, mng_size_t size __attribute__ ((unused))) { free(ptr); return; } static mng_bool MNG_DECL -mng_null_proc(mng_handle mng) +mng_null_proc(mng_handle mng __attribute__ ((unused))) { // synfig::info("%s:%d mng_trgt::mng_null_proc was called", __FILE__, __LINE__); return MNG_TRUE; @@ -89,8 +89,10 @@ mng_write_proc(mng_handle mng, mng_ptr buf, mng_uint32 size, mng_uint32* written } static mng_bool MNG_DECL -mng_error_proc(mng_handle mng, mng_int32 error, mng_int8 severity, mng_chunkid chunkname, - mng_uint32 chunkseq, mng_int32 extra1, mng_int32 extra2, mng_pchar errortext) +mng_error_proc(mng_handle mng __attribute__ ((unused)), mng_int32 error __attribute__ ((unused)), + mng_int8 severity __attribute__ ((unused)), mng_chunkid chunkname __attribute__ ((unused)), + mng_uint32 chunkseq __attribute__ ((unused)), mng_int32 extra1 __attribute__ ((unused)), + mng_int32 extra2 __attribute__ ((unused)), mng_pchar errortext) { synfig::error("%s:%d mng_trgt: error: %s", __FILE__, __LINE__, errortext); return MNG_TRUE; @@ -264,7 +266,7 @@ mng_trgt::end_frame() } bool -mng_trgt::start_frame(synfig::ProgressCallback *callback) +mng_trgt::start_frame(synfig::ProgressCallback *callback __attribute__ ((unused))) { // synfig::info("%s:%d mng_trgt::start_frame()", __FILE__, __LINE__); @@ -305,7 +307,7 @@ mng_trgt::start_frame(synfig::ProgressCallback *callback) } Color* -mng_trgt::start_scanline(int scanline) +mng_trgt::start_scanline(int scanline __attribute__ ((unused))) { return color_buffer; } -- 2.7.4