[Bf-blender-cvs] [9aff3089024] greasepencil-refactor: Cleanup: GPencil: Fix Compiler warning about unused function

Clément Foucault noreply at git.blender.org
Wed Jan 1 03:58:50 CET 2020


Commit: 9aff3089024b738e873127904625aa059ae9f01e
Author: Clément Foucault
Date:   Wed Jan 1 03:58:32 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB9aff3089024b738e873127904625aa059ae9f01e

Cleanup: GPencil: Fix Compiler warning about unused function

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_render.c

===================================================================

diff --git a/source/blender/draw/engines/gpencil/gpencil_render.c b/source/blender/draw/engines/gpencil/gpencil_render.c
index d2e6f899cb6..e85ef370e38 100644
--- a/source/blender/draw/engines/gpencil/gpencil_render.c
+++ b/source/blender/draw/engines/gpencil/gpencil_render.c
@@ -37,7 +37,7 @@
  * This function uses the same calculation used for viewport, because if use
  * camera pixelsize, the result is not correct.
  */
-static float get_render_pixelsize(float persmat[4][4], int winx, int winy)
+static float UNUSED_FUNCTION(get_render_pixelsize)(float persmat[4][4], int winx, int winy)
 {
   float v1[3], v2[3];
   float len_px, len_sc;



More information about the Bf-blender-cvs mailing list