On 2010-08-14 at 14:32:14 [+0200], Andreas Färber <andreas.faerber@xxxxxx> wrote: > Am 22.07.2010 um 18:06 schrieb buildomatic@xxxxxxxxx: > > > Cc /Build-O-Matic/output/generated.ppc/objects/haiku/ppc/release/add- > > ons/kernel/bus_managers/firewire/fwohci.o > > cc1: warnings being treated as errors > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c: In function 'print_db': > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c:2433: error: format '%08x' expects type 'unsigned int', but > > argument 8 has type 'uint32' > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c:2433: error: format '%08x' expects type 'unsigned int', but > > argument 9 has type 'uint32' > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c:2459: error: format '%08x' expects type 'unsigned int', but > > argument 2 has type 'uint32' > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c:2459: error: format '%08x' expects type 'unsigned int', but > > argument 3 has type 'uint32' > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c:2459: error: format '%08x' expects type 'unsigned int', but > > argument 4 has type 'uint32' > > /Build-O-Matic/output/haiku/src/add-ons/kernel/bus_managers/firewire/ > > fwohci.c:2459: error: format '%08x' expects type 'unsigned int', but > > argument 5 has type 'uint32' > > Anyone any suggestion how to fix this? It looks like the offending > code is from some BSD... Adjust the definition of the htole32() and le32toh() macros (cast to uint32_t at least). The printf() code is not portable, though, since it doesn't use the PRI* format macros. CU, Ingo