Fix compilation in release mode with strict flags
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 30 Apr 2013 12:18:09 +0000 (12:18 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 30 Apr 2013 12:18:09 +0000 (12:18 +0000)
source/blender/editors/interface/interface_handlers.c

index 0e4704f3990afa2fcdb93eb29bab4dabfb5bef61..63d2594f350ec420d5238bbd79b5a31bc3705ac7 100644 (file)
@@ -6909,6 +6909,7 @@ static bool ui_menu_pass_event_to_parent_if_nonactive(uiPopupBlockHandle *menu,
 {
        if ((level != 0) && (but == NULL)) {
                menu->menuretval = UI_RETURN_OUT | UI_RETURN_OUT_PARENT;
+               (void) retval;  /* so release builds with strict flags are happy as well */
                BLI_assert(retval == WM_UI_HANDLER_CONTINUE);
                return true;
        }