* Resolve further warnings on GCC4.

* Enable -Werror on GCC4 builds as well (limited to the same selected targets).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29118 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-02-01 22:12:55 +00:00
parent 702a1e7241
commit 6eb09230ba
22 changed files with 53 additions and 58 deletions
+4 -4
View File
@@ -563,8 +563,8 @@ BSplitLayout::StartDraggingSplitter(BPoint point)
// Things shouldn't be draggable, if we have a >= max layout.
BSize size = _SubtractInsets(View()->Frame().Size());
if (fOrientation == B_HORIZONTAL && size.width >= fMax.width
|| fOrientation == B_VERTICAL && size.height >= fMax.height) {
if ((fOrientation == B_HORIZONTAL && size.width >= fMax.width)
|| (fOrientation == B_VERTICAL && size.height >= fMax.height)) {
return false;
}
@@ -1133,8 +1133,8 @@ void
BSplitLayout::_InternalGetHeightForWidth(float width, bool realLayout,
float* minHeight, float* maxHeight, float* preferredHeight)
{
if (realLayout && fHeightForWidthVerticalLayouterWidth != width
|| !realLayout && fCachedHeightForWidthWidth != width) {
if ((realLayout && fHeightForWidthVerticalLayouterWidth != width)
|| (!realLayout && fCachedHeightForWidthWidth != width)) {
// The general strategy is to clone the vertical layouter, which only
// knows the general min/max constraints, do a horizontal layout for the
// given width, and add the children's height for width constraints to