Prevent compiler warnings about unused parameters.
[synfig.git] / synfig-core / trunk / src / modules / mod_png / trgt_png.cpp
index 1b84eee..e1bba49 100644 (file)
@@ -1,8 +1,10 @@
-/*! ========================================================================
-** Synfig
-** png_trgt Target Module
-** $Id: trgt_png.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
+/* === S Y N F I G ========================================================= */
+/*!    \file trgt_png.cpp
+**     \brief png_trgt Target Module
 **
+**     $Id$
+**
+**     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
 **
 **     This package is free software; you can redistribute it and/or
@@ -14,6 +16,7 @@
 **     but WITHOUT ANY WARRANTY; without even the implied warranty of
 **     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 **     General Public License for more details.
+**     \endlegal
 **
 ** === N O T E S ===========================================================
 **
@@ -52,7 +55,7 @@ SYNFIG_TARGET_INIT(png_trgt);
 SYNFIG_TARGET_SET_NAME(png_trgt,"png");
 SYNFIG_TARGET_SET_EXT(png_trgt,"png");
 SYNFIG_TARGET_SET_VERSION(png_trgt,"0.1");
-SYNFIG_TARGET_SET_CVS_ID(png_trgt,"$Id: trgt_png.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $");
+SYNFIG_TARGET_SET_CVS_ID(png_trgt,"$Id$");
 
 /* === M E T H O D S ======================================================= */
 
@@ -200,10 +203,14 @@ png_trgt::start_frame(synfig::ProgressCallback *callback)
        // Output any text info along with the file
        png_text comments[]=
        {
-               { PNG_TEXT_COMPRESSION_NONE, "Title", const_cast<char *>(get_canvas()->get_name().c_str()) },
-               { PNG_TEXT_COMPRESSION_NONE, "Description", const_cast<char *>(get_canvas()->get_description().c_str()) },
-//             { PNG_TEXT_COMPRESSION_NONE, "Copyright", "(c) 2004 Voria Studios, LLC" },
-               { PNG_TEXT_COMPRESSION_NONE, "Software", "SYNFIG" },
+               { PNG_TEXT_COMPRESSION_NONE, "Title", const_cast<char *>(get_canvas()->get_name().c_str()),
+                 strlen(get_canvas()->get_name().c_str()) },
+               { PNG_TEXT_COMPRESSION_NONE, "Description", const_cast<char *>(get_canvas()->get_description().c_str()),
+                 strlen(get_canvas()->get_description().c_str()) },
+//             { PNG_TEXT_COMPRESSION_NONE, "Copyright", "(c) 2004 Voria Studios, LLC",
+//               strlen("(c) 2004 Voria Studios, LLC") },
+               { PNG_TEXT_COMPRESSION_NONE, "Software", "SYNFIG",
+                 strlen("SYNFIG") },
        };
        png_set_text(png_ptr,info_ptr,comments,sizeof(comments)/sizeof(png_text));
 
@@ -214,7 +221,7 @@ png_trgt::start_frame(synfig::ProgressCallback *callback)
 }
 
 Color *
-png_trgt::start_scanline(int scanline)
+png_trgt::start_scanline(int /*scanline*/)
 {
        return color_buffer;
 }