diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-03 03:38:35 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-08 20:13:22 -0500 |
commit | 92bdeb2888729eec6e699ef1cf5c3fc4c2db886e (patch) | |
tree | b8652d453ea7d9b150d17a13e41870f4b4a4590b /sim/ppc/hw_disk.c | |
parent | 9f17cdda31504ee821112a88323306cc81ac93cf (diff) | |
download | gdb-92bdeb2888729eec6e699ef1cf5c3fc4c2db886e.zip gdb-92bdeb2888729eec6e699ef1cf5c3fc4c2db886e.tar.gz gdb-92bdeb2888729eec6e699ef1cf5c3fc4c2db886e.tar.bz2 |
sim: ppc: workaround uninitialized variable compiler warnings
Some compilers don't understand the semctl API and think it's an input
argument even when it's used as an output, and then complains that it
is being used uninitialized. Zero it out explicitly to workaround it.
This adds some runtime overhead, but should be fairly minor as it's a
small stack buffer, and shouldn't be that relevant relative to all the
other logic in these functions.
Diffstat (limited to 'sim/ppc/hw_disk.c')
0 files changed, 0 insertions, 0 deletions