warning fixes.
[blender-staging.git] / source / blender / editors / space_script / script_edit.c
index 7e3b14ca04a6ace25646772c8fb0d149bfe82dad..23bc385c758d83ef90ef66285f4cba322abbaa5f 100644 (file)
@@ -60,6 +60,8 @@ static int run_pyfile_exec(bContext *C, wmOperator *op)
                ED_region_tag_redraw(ar);
                return OPERATOR_FINISHED;
        }
+#else
+       (void)C; /* unused */
 #endif
        return OPERATOR_CANCELLED; /* FAIL */
 }
@@ -89,6 +91,8 @@ static int script_reload_exec(bContext *C, wmOperator *UNUSED(op))
        BPY_eval_string(C, "__import__('bpy').utils.load_scripts(reload_scripts=True)");
        WM_cursor_wait(0);
        return OPERATOR_FINISHED;
+#else
+       (void)C; /* unused */
 #endif
        return OPERATOR_CANCELLED;
 }