sim: ppc: fix Wpointer-sign warning
authorTom de Vries <tdevries@suse.de>
Thu, 20 May 2021 11:58:35 +0000 (13:58 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 20 May 2021 11:58:35 +0000 (13:58 +0200)
commit8baee38bfee176505e6bb541f1df8ec4156b3d46
tree22f1caa4ccdb5311cc58ef9915a55769827bd3de
parent7f2b87189bea763f1edb7f63e8cf8f2e1ed2d502
sim: ppc: fix Wpointer-sign warning

When compiling with --enable-werror and CFLAGS="-O0 -g -Wall", we run into:
...
src/sim/ppc/hw_memory.c: In function 'hw_memory_init_address':
src/sim/ppc/hw_memory.c:194:75: error: pointer targets in passing \
  argument 4 of 'device_find_integer_array_property' differ in signedness \
  [-Werror=pointer-sign]
     int nr_cells
       = device_find_integer_array_property(me, "available", 0, &dummy);
                                                                ^
...

Fix this by changing the type of dummy.
sim/ppc/hw_memory.c