Code cleanup: warning fixes.
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 2b8b0dd03937a6df2b4797e270f3c90a13aa73d7..d32a26549e7bcc104278c9f89e8dbfcc8d1a5bcc 100644 (file)
@@ -2035,6 +2035,8 @@ static void WM_OT_quit_blender(wmOperatorType *ot)
 
 /* *********************** */
 
+#if defined(WIN32)
+
 static int wm_console_toggle_op(bContext *UNUSED(C), wmOperator *UNUSED(op))
 {
        GHOST_toggleConsole(2);
@@ -2051,6 +2053,8 @@ static void WM_OT_console_toggle(wmOperatorType *ot)
        ot->poll= WM_operator_winactive;
 }
 
+#endif
+
 /* ************ default paint cursors, draw always around cursor *********** */
 /*
  - returns handler to free