#11994: [Patch] Fix GCC 5 suggest parentheses warning.
-------------------------------------+------------------------------
Reporter: mt | Owner: axeld
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/Workspaces | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-------------------------------------+------------------------------
GCC 5 (5.1.0-RC-20150412) reports.
{{{
/home/haiku/haiku/haiku/src/apps/workspaces/Workspaces.cpp: In member
function 'virtual void WorkspacesWindow::FrameResized(float, float)':
/home/haiku/haiku/haiku/src/apps/workspaces/Workspaces.cpp:699:17: error:
suggest parentheses around operand of '!' or change '&' to '&&' or '!' to
'~' [-Werror=parentheses]
if (!modifiers() & B_SHIFT_KEY) {
^
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/11994>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.