code cleanup: add missing includes to RNA (this one is safe!)
authorCampbell Barton <ideasman42@gmail.com>
Mon, 24 Sep 2012 22:39:45 +0000 (22:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 24 Sep 2012 22:39:45 +0000 (22:39 +0000)
source/blender/makesrna/intern/rna_action_api.c
source/blender/makesrna/intern/rna_actuator_api.c
source/blender/makesrna/intern/rna_fcurve_api.c
source/blender/makesrna/intern/rna_image_api.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_material_api.c
source/blender/makesrna/intern/rna_pose.c
source/blender/makesrna/intern/rna_pose_api.c
source/blender/makesrna/intern/rna_sensor_api.c
source/blender/makesrna/intern/rna_text_api.c
source/blender/makesrna/intern/rna_wm_api.c

index 7e95aaab31b2d29e52e2fbf25b9e0c378a64e7e8..fe429d8698b63d3aaa1c96d7fc41317ba14070d2 100644 (file)
 #include <string.h>
 #include <time.h>
 
+#include "BLI_utildefines.h"
+
 #include "RNA_define.h"
 
 #include "DNA_action_types.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #include "BKE_action.h"
@@ -47,7 +51,7 @@
 
 #else
 
-void RNA_api_action(StructRNA *srna)
+void RNA_api_action(StructRNA *UNUSED(srna))
 {
        
 }
index 68b2c4f8b52dd797ada3acc77cc7c67a2c856fec..4a34961964d43898f882085c63cc2084a3d26435 100644 (file)
@@ -35,6 +35,8 @@
 #include "WM_types.h"
 #include "RNA_define.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #include "BKE_sca.h"
index 1f8b827f3201bbe9fae6b51c4e2e3ca24ef2f5b6..ab96f6f384d05475ebba1f236c226742e23edbca 100644 (file)
 #include <string.h>
 #include <time.h>
 
+#include "BLI_utildefines.h"
+
 #include "RNA_define.h"
 
 #include "DNA_anim_types.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #include <stddef.h>
@@ -47,7 +51,7 @@
 
 #else
 
-void RNA_api_drivers(StructRNA *srna)
+void RNA_api_drivers(StructRNA *UNUSED(srna))
 {
 /*     FunctionRNA *func; */
 /*     PropertyRNA *parm; */
index cb7844c50e39e5ac566b3b6c36ac1eb4bef1d899..7766dff427367796058aa19a43d733b0dbcbe102 100644 (file)
@@ -41,6 +41,8 @@
 
 #include "BIF_gl.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #include "BKE_image.h"
index c8b25b7b697f9ff9da2f8df38440d6f393463ba5..d1bc72bb6b4a060804a173a89aeb58f7fcfeb638 100644 (file)
@@ -265,6 +265,7 @@ void RNA_api_material(StructRNA *srna);
 void RNA_api_mesh(struct StructRNA *srna);
 void RNA_api_object(struct StructRNA *srna);
 void RNA_api_object_base(struct StructRNA *srna);
+void RNA_api_pose(struct StructRNA *srna);
 void RNA_api_pose_channel(struct StructRNA *srna);
 void RNA_api_scene(struct StructRNA *srna);
 void RNA_api_scene_render(struct StructRNA *srna);
index 538a4c99df429a010fb8395d3e9336f5e0dbb282..c7441f92c33c11671b50b11035544df5c2b3b860 100644 (file)
 #include <stdlib.h>
 #include <stdio.h>
 
+#include "BLI_utildefines.h"
+
 #include "RNA_define.h"
 
 #include "DNA_material_types.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #else
 
-void RNA_api_material(StructRNA *srna)
+void RNA_api_material(StructRNA *UNUSED(srna))
 {
        /* FunctionRNA *func; */
        /* PropertyRNA *parm; */
index 2b6fd2cb2636788981aec72361cec7c0edf6d0e5..df278e7cf16e8f774ab288a92a22baad1d3e62c9 100644 (file)
@@ -1300,7 +1300,7 @@ static void rna_def_pose(BlenderRNA *brna)
        /* animviz */
        rna_def_animviz_common(srna);
        
-       /* RNA_api_pose(srna); */
+       RNA_api_pose(srna);
 }
 
 void RNA_def_pose(BlenderRNA *brna)
index ed4690ac6a794f00fa6f8e298014f23216a44331..29d7c616d25d0da59c6f32c7815130e3b8b3a79d 100644 (file)
 #include <string.h>
 #include <time.h>
 
+#include "BLI_utildefines.h"
+
 #include "RNA_define.h"
 
 #include "DNA_object_types.h"
 
 /* #include "BLO_sys_types.h" */
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 /* #include "DNA_anim_types.h" */
@@ -57,7 +61,7 @@ static float rna_PoseBone_do_envelope(bPoseChannel *chan, float *vec)
 }
 #else
 
-void RNA_api_pose(StructRNA *srna)
+void RNA_api_pose(StructRNA *UNUSED(srna))
 {
        /* FunctionRNA *func; */
        /* PropertyRNA *parm; */
index fd0c6f622ff199c4e72e7a40e452230d194b0e52..d920cbef4a2d60eb24b8be677a010156154f8051 100644 (file)
@@ -35,6 +35,8 @@
 #include "WM_types.h"
 #include "RNA_define.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #include "BKE_sca.h"
index 0366012e26079f6857ec4f10ae80cb9b55a235a4..5f67f367195feaaa13ce7810250a65b1e6b693dd 100644 (file)
@@ -30,6 +30,8 @@
 
 #include "RNA_define.h"
 
+#include "rna_internal.h"  /* own include */
+
 #ifdef RNA_RUNTIME
 
 #include "WM_api.h"
index cb4e00a042e5e9d1f40dd0d4e673bbdd32e33e40..d6979161cdcc0b8f458596baad2d8dfc8ca16df6 100644 (file)
@@ -32,6 +32,8 @@
 #include <stdlib.h>
 #include <stdio.h>
 
+#include "BLI_utildefines.h"
+
 #include "RNA_define.h"
 #include "RNA_enum_types.h"
 
@@ -383,7 +385,7 @@ void RNA_api_macro(StructRNA *srna)
        RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);
 }
 
-void RNA_api_keyconfig(StructRNA *srna)
+void RNA_api_keyconfig(StructRNA *UNUSED(srna))
 {
        /* FunctionRNA *func; */
        /* PropertyRNA *parm; */