diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index 8e7aa7b22b0e42ca14184707f07f8b215e39d6a9..2b93237de61421d3bb7054e6aa0950f419f72520 100755
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -3053,6 +3053,9 @@ void LLFloaterView::setToolbarRect(LLToolBarEnums::EToolBarLocation tb, const LL
 	case LLToolBarEnums::TOOLBAR_RIGHT:
 		mToolbarRightRect = toolbar_rect;
 		break;
+	default:
+		llwarns << "setToolbarRect() passed odd toolbar number " << (S32) tb << llendl;
+		break;
 	}
 }