quiet unused function warnings in RNA for functions created by macros.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 20 Aug 2012 07:29:11 +0000 (07:29 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 20 Aug 2012 07:29:11 +0000 (07:29 +0000)
source/blender/makesrna/intern/rna_mesh.c

index 4f3e6081fcca862ec52cf00b9fc2b8b17d8e8dda..fe5f8e574a00978fca726e89a7fccb63fa1c44ec 100644 (file)
@@ -1393,6 +1393,46 @@ static PointerRNA rna_Mesh_tessface_uv_texture_new(struct Mesh *me, struct bCont
        return ptr;
 }
 
+/* only to quiet warnings */
+static void UNUSED_FUNCTION(rna_mesh_unused)(void)
+{
+       /* unused functions made by macros */
+       (void)rna_Mesh_skin_vertice_index_range;
+       (void)rna_Mesh_tessface_uv_texture_active_set;
+       (void)rna_Mesh_tessface_uv_texture_clone_get;
+       (void)rna_Mesh_tessface_uv_texture_clone_index_get;
+       (void)rna_Mesh_tessface_uv_texture_clone_index_set;
+       (void)rna_Mesh_tessface_uv_texture_clone_set;
+       (void)rna_Mesh_tessface_uv_texture_index_range;
+       (void)rna_Mesh_tessface_uv_texture_render_get;
+       (void)rna_Mesh_tessface_uv_texture_render_index_get;
+       (void)rna_Mesh_tessface_uv_texture_render_index_set;
+       (void)rna_Mesh_tessface_uv_texture_render_set;
+       (void)rna_Mesh_tessface_uv_texture_stencil_get;
+       (void)rna_Mesh_tessface_uv_texture_stencil_index_get;
+       (void)rna_Mesh_tessface_uv_texture_stencil_index_set;
+       (void)rna_Mesh_tessface_uv_texture_stencil_set;
+       (void)rna_Mesh_tessface_vertex_color_active_set;
+       (void)rna_Mesh_tessface_vertex_color_index_range;
+       (void)rna_Mesh_tessface_vertex_color_render_get;
+       (void)rna_Mesh_tessface_vertex_color_render_index_get;
+       (void)rna_Mesh_tessface_vertex_color_render_index_set;
+       (void)rna_Mesh_tessface_vertex_color_render_set;
+       (void)rna_Mesh_uv_layer_render_get;
+       (void)rna_Mesh_uv_layer_render_index_get;
+       (void)rna_Mesh_uv_layer_render_index_set;
+       (void)rna_Mesh_uv_layer_render_set;
+       (void)rna_Mesh_uv_texture_render_get;
+       (void)rna_Mesh_uv_texture_render_index_get;
+       (void)rna_Mesh_uv_texture_render_index_set;
+       (void)rna_Mesh_uv_texture_render_set;
+       (void)rna_Mesh_vertex_color_render_get;
+       (void)rna_Mesh_vertex_color_render_index_get;
+       (void)rna_Mesh_vertex_color_render_index_set;
+       (void)rna_Mesh_vertex_color_render_set;
+       /* end unused function block */
+}
+
 #else
 
 static void rna_def_mvert_group(BlenderRNA *brna)
@@ -3003,4 +3043,3 @@ void RNA_def_mesh(BlenderRNA *brna)
 }
 
 #endif
-