[haiku-bugs] [Haiku] #11991: [Patch] Fix GCC 5 narrowing conversion warning.

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Sun, 19 Apr 2015 09:21:15 -0000

#11991: [Patch] Fix GCC 5 narrowing conversion warning.
---------------------------+------------------------------
Reporter: mt | Owner: axeld
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/Kernel | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
---------------------------+------------------------------
GCC 5 (5.1.0-RC-20150412) reports.

{{{
C++ /home/haiku/haiku/haiku/generated-gcc5/objects/haiku/x86/release/add-
ons/kernel/bus_managers/firewire/fwohci_pci.o
/home/haiku/haiku/haiku/src/add-
ons/kernel/bus_managers/firewire/fwohci.cpp:90:58: error: narrowing
conversion of '-2147483648' from 'int' to 'uint32_t {aka unsigned int}'
inside { }
uint32_t tagbit[4] = { 1 << 28, 1 << 29, 1 << 30, 1 << 31};
^
}}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/11991>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: