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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-02 14:06:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-02 14:10:27 +0300
commit9cd2e4fa3fd5b85c50bf766ee32f1a0328badae1 (patch)
treec5a418603fa88bb6ad71520e49e381c87f1a2884 /source
parentb608133075b6362aa067e32538fb5a5c7a3e5c30 (diff)
Cleanup: quiet warnings w/o Python
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_wm_manipulator.c3
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
2 files changed, 4 insertions, 1 deletions
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();