* 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:
@@ -2626,8 +2626,8 @@ BMenu::_OkToProceed(BMenuItem* item)
|
||||
// TODO: I added the check for BMenuBar to solve a problem with Deskbar.
|
||||
// BeOS seems to do something similar. This could also be a bug in Deskbar, though.
|
||||
if ((buttons != 0 && stickyMode)
|
||||
|| (dynamic_cast<BMenuBar *>(this) == NULL
|
||||
&& (buttons == 0 && !stickyMode) || _HitTestItems(where) != item))
|
||||
|| ((dynamic_cast<BMenuBar *>(this) == NULL
|
||||
&& (buttons == 0 && !stickyMode)) || _HitTestItems(where) != item))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user