- UNUSED macro wasn't throwing an error with GCC if a var become used.
[blender.git] / source / blender / editors / interface / interface_panel.c
index a7b74900a215a87c7239c7fddc33617cc6c72984..d6cb81619166b3e24e4413fb412b6b363002cfab 100644 (file)
@@ -316,7 +316,7 @@ void uiPanelPush(uiBlock *block)
                glTranslatef((float)block->panel->ofsx, (float)block->panel->ofsy, 0.0);
 }
 
-void uiPanelPop(uiBlock *block)
+void uiPanelPop(uiBlock *UNUSED(block))
 {
        glPopMatrix();
 }
@@ -425,7 +425,7 @@ static void ui_draw_panel_dragwidget(rctf *rect)
 }
 
 
-static void ui_draw_aligned_panel_header(ARegion *ar, uiStyle *style, uiBlock *block, rcti *rect, char dir)
+static void ui_draw_aligned_panel_header(uiStyle *style, uiBlock *block, rcti *rect, char dir)
 {
        Panel *panel= block->panel;
        rcti hrect;
@@ -468,7 +468,7 @@ static void rectf_scale(rctf *rect, float scale)
 }
 
 /* panel integrated in buttonswindow, tool/property lists etc */
-void ui_draw_aligned_panel(ARegion *ar, uiStyle *style, uiBlock *block, rcti *rect)
+void ui_draw_aligned_panel(uiStyle *style, uiBlock *block, rcti *rect)
 {
        Panel *panel= block->panel;
        rcti headrect;
@@ -499,7 +499,7 @@ void ui_draw_aligned_panel(ARegion *ar, uiStyle *style, uiBlock *block, rcti *re
        
        /* horizontal title */
        if(!(panel->flag & PNL_CLOSEDX)) {
-               ui_draw_aligned_panel_header(ar, style, block, &headrect, 'h');
+               ui_draw_aligned_panel_header(style, block, &headrect, 'h');
                
                /* itemrect smaller */  
                itemrect.xmax= headrect.xmax - 5.0f/block->aspect;
@@ -518,7 +518,7 @@ void ui_draw_aligned_panel(ARegion *ar, uiStyle *style, uiBlock *block, rcti *re
        }
        else if(panel->flag & PNL_CLOSEDX) {
                /* draw vertical title */
-               ui_draw_aligned_panel_header(ar, style, block, &headrect, 'v');
+               ui_draw_aligned_panel_header(style, block, &headrect, 'v');
        }
        /* an open panel */
        else {