[Bf-blender-cvs] [9cd2e4fa3fd] blender2.8: Cleanup: quiet warnings w/o Python

Campbell Barton noreply at git.blender.org
Sat Jun 2 13:10:43 CEST 2018


Commit: 9cd2e4fa3fd5b85c50bf766ee32f1a0328badae1
Author: Campbell Barton
Date:   Sat Jun 2 13:06:06 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB9cd2e4fa3fd5b85c50bf766ee32f1a0328badae1

Cleanup: quiet warnings w/o Python

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

M	source/blender/makesrna/intern/rna_wm_manipulator.c
M	source/blender/windowmanager/intern/wm_files.c

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

diff --git a/source/blender/makesrna/intern/rna_wm_manipulator.c b/source/blender/makesrna/intern/rna_wm_manipulator.c
index bb40a12f5d5..4ae1e107e28 100644
--- a/source/blender/makesrna/intern/rna_wm_manipulator.c
+++ b/source/blender/makesrna/intern/rna_wm_manipulator.c
@@ -74,6 +74,7 @@
 /** \name Manipulator API
  * \{ */
 
+#ifdef WITH_PYTHON
 static void rna_manipulator_draw_cb(
         const struct bContext *C, struct wmManipulator *mpr)
 {
@@ -238,6 +239,8 @@ static void rna_manipulator_select_refresh_cb(
 	RNA_parameter_list_free(&list);
 }
 
+#endif  /* WITH_PYTHON */
+
 /* just to work around 'const char *' warning and to ensure this is a python op */
 static void rna_Manipulator_bl_idname_set(PointerRNA *ptr, const char *value)
 {
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index e606fdcc554..68be37ef709 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -506,7 +506,7 @@ static void wm_file_read_post(bContext *C, const bool is_startup_file, const boo
 		addons_loaded = true;
 	}
 #else
-	UNUSED_VARS(use_userdef);
+	UNUSED_VARS(is_startup_file, use_userdef);
 #endif  /* WITH_PYTHON */
 
 	WM_operatortype_last_properties_clear_all();



More information about the Bf-blender-cvs mailing list