Cleanup: quiet warnings w/o Python

This commit is contained in:
Campbell Barton
2018-06-02 13:06:06 +02:00
parent b608133075
commit 9cd2e4fa3f
2 changed files with 4 additions and 1 deletions

View File

@@ -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)
{

View File

@@ -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();