[Bf-blender-cvs] [3f55de5] master: Fix strict flags compilation
Sergey Sharybin
noreply at git.blender.org
Tue Jul 1 09:13:17 CEST 2014
Commit: 3f55de56139ae4c8dfeeb3da7b36a8a1a9055493
Author: Sergey Sharybin
Date: Tue Jul 1 13:07:18 2014 +0600
https://developer.blender.org/rB3f55de56139ae4c8dfeeb3da7b36a8a1a9055493
Fix strict flags compilation
===================================================================
M source/blender/imbuf/intern/png.c
===================================================================
diff --git a/source/blender/imbuf/intern/png.c b/source/blender/imbuf/intern/png.c
index 23f5cc1..67aeda5 100644
--- a/source/blender/imbuf/intern/png.c
+++ b/source/blender/imbuf/intern/png.c
@@ -486,7 +486,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags)
return(1);
}
-static void imb_png_warning(png_structp png_ptr, png_const_charp message)
+static void imb_png_warning(png_structp UNUSED(png_ptr), png_const_charp message)
{
/* We supress iCCP warnings. That's how Blender always used to behave,
* and with new libpng it became too much picky, giving a warning on
@@ -498,7 +498,7 @@ static void imb_png_warning(png_structp png_ptr, png_const_charp message)
fprintf(stderr, "libpng warning: %s\n", message);
}
-static void imb_png_error(png_structp png_ptr, png_const_charp message)
+static void imb_png_error(png_structp UNUSED(png_ptr), png_const_charp message)
{
fprintf(stderr, "libpng error: %s\n", message);
}
More information about the Bf-blender-cvs
mailing list