[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20764] trunk/blender/source/creator/ creator.c: Use fputs instead of fprintf in mem_error_cb().

Campbell Barton ideasman42 at gmail.com
Tue Jun 9 21:01:18 CEST 2009


Found quite a few similar warnings if anyone wants to fix
http://pastie.org/506138

On Tue, Jun 9, 2009 at 11:08 AM, Chris Want<cwant at ualberta.ca> wrote:
> Revision: 20764
>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20764
> Author:   hos
> Date:     2009-06-09 20:08:45 +0200 (Tue, 09 Jun 2009)
>
> Log Message:
> -----------
> Use fputs instead of fprintf in mem_error_cb(). This silences the
> gcc warning "format not a string literal and no format arguments".
>
> Modified Paths:
> --------------
>    trunk/blender/source/creator/creator.c
>
> Modified: trunk/blender/source/creator/creator.c
> ===================================================================
> --- trunk/blender/source/creator/creator.c      2009-06-09 17:56:07 UTC (rev 20763)
> +++ trunk/blender/source/creator/creator.c      2009-06-09 18:08:45 UTC (rev 20764)
> @@ -887,7 +887,7 @@
>
>  static void mem_error_cb(char *errorStr)
>  {
> -       fprintf(stderr, errorStr);
> +       fputs(errorStr, stderr);
>        fflush(stderr);
>  }
>
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



-- 
- Campbell


More information about the Bf-committers mailing list