Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-02-23 12:24:59 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-23 12:24:59 +0300
commit53a9dec2bfecc8a2c863d850bcec05aafb008bac (patch)
tree596a72ec6f75cfdc7b7bbca29222bafb025bd1e9 /source/blender
parent3b3ed19c187242cde0d0aa9d932176dc8dded30c (diff)
Silence "defined but not used" warnings
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c4
-rw-r--r--source/blender/gpu/intern/gpu_draw.c2
-rw-r--r--source/blender/modifiers/intern/MOD_uvwarp.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 1b8acde4219..8657991d1ba 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -7459,7 +7459,7 @@ static void drawtube(const float vec[3], float radius, float height, float tmat[
}
/* needs fixing if non-identity matrix used */
-static void imm_drawtube(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
+static void UNUSED_FUNCTION(imm_drawtube)(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
{
float cur[3];
imm_drawcircball(vec, radius, tmat, pos);
@@ -7505,7 +7505,7 @@ static void drawcone(const float vec[3], float radius, float height, float tmat[
}
/* needs fixing if non-identity matrix used */
-static void imm_drawcone(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
+static void UNUSED_FUNCTION(imm_drawcone)(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
{
float cur[3];
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 1fb1e239310..fa8e05b6bfb 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -220,7 +220,7 @@ void GPU_render_text(
/* Checking powers of two for images since OpenGL ES requires it */
-static bool is_power_of_2_resolution(int w, int h)
+static bool UNUSED_FUNCTION(is_power_of_2_resolution)(int w, int h)
{
return is_power_of_2_i(w) && is_power_of_2_i(h);
}
diff --git a/source/blender/modifiers/intern/MOD_uvwarp.c b/source/blender/modifiers/intern/MOD_uvwarp.c
index 072267fc505..00ef6dd9733 100644
--- a/source/blender/modifiers/intern/MOD_uvwarp.c
+++ b/source/blender/modifiers/intern/MOD_uvwarp.c
@@ -225,7 +225,7 @@ static void foreachObjectLink(ModifierData *md, Object *ob, ObjectWalkFunc walk,
walk(userData, ob, &umd->object_src, IDWALK_CB_NOP);
}
-static void uv_warp_deps_object_bone(DagForest *forest, DagNode *obNode,
+static void UNUSED_FUNCTION(uv_warp_deps_object_bone)(DagForest *forest, DagNode *obNode,
Object *obj, const char *bonename)
{
if (obj) {