[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59714] branches/soc-2013-ui_replay/source /blender/editors/interface/interface_panel.c: Fixed some compilation errors for strict compilation.

Vincent Akkermans vincent at ack-err.net
Sun Sep 1 17:45:56 CEST 2013


Revision: 59714
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59714
Author:   ack-err
Date:     2013-09-01 15:45:56 +0000 (Sun, 01 Sep 2013)
Log Message:
-----------
Fixed some compilation errors for strict compilation.

Modified Paths:
--------------
    branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c

Modified: branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c	2013-09-01 15:31:09 UTC (rev 59713)
+++ branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c	2013-09-01 15:45:56 UTC (rev 59714)
@@ -549,7 +549,7 @@
 }
 
 /* panel integrated in buttonswindow, tool/property lists etc */
-void ui_draw_aligned_panel(uiStyle *style, uiBlock *block, rcti *rect, int toolbar)
+void ui_draw_aligned_panel(uiStyle *style, uiBlock *block, rcti *rect, int UNUSED(toolbar))
 {
 	Panel *panel = block->panel;
 	rcti headrect;
@@ -1131,7 +1131,7 @@
 	ED_region_tag_redraw(ar);
 }
 
-static void ui_do_drag_button_finish(const bContext *C, const wmEvent *event, Panel *pa)
+static void ui_do_drag_button_finish(const bContext *C, const wmEvent *UNUSED(event), Panel *pa)
 {
 	uiHandlePanelData *data = pa->activedata;
 	ARegion *ar = CTX_wm_region(C);
@@ -1259,17 +1259,16 @@
 	uiLayout *layout;
 	uiBut *but;
 	PointerRNA ptr;
-	
-	block = uiBeginBlock(C, ar, "panel options", UI_EMBOSS);
-	
-	uiBlockClearFlag(block, UI_BLOCK_LOOP);
-	uiBlockSetFlag(block, UI_BLOCK_MOVEMOUSE_QUIT);
-	
 	uiStyle *style = UI_GetStyleDraw();
 	
 	int xco, yco;
 	int w = UI_PANEL_WIDTH / 2;
 	int em = UI_UNIT_Y;
+	
+	block = uiBeginBlock(C, ar, "panel options", UI_EMBOSS);
+	
+	uiBlockClearFlag(block, UI_BLOCK_LOOP);
+	uiBlockSetFlag(block, UI_BLOCK_MOVEMOUSE_QUIT);
 		
 	layout = uiBlockLayout(block, UI_LAYOUT_VERTICAL, UI_LAYOUT_TOOLBAR,
 							style->panelspace, 0, w - 2 * style->panelspace, em, style);




More information about the Bf-blender-cvs mailing list