]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Fix GCC 13 warns: ‘new_velocity[0]’ may be used uninitialized
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 27 Oct 2023 15:47:55 +0000 (01:47 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 28 Oct 2023 08:23:11 +0000 (18:23 +1000)
commite72b42f6d10eb7fa60895279157d5525fc6eb03c
tree0d175101462395780bb30087e58ec914c52d40a6
parent85827aea57790c38ce07724c41b297d9bbbbd281
Fix GCC 13 warns: ‘new_velocity[0]’ may be used uninitialized

Pretty sure this was a false positive, for it to happen `numplanes`
would have to be <= 0 in the loop which sets `new_velocity` which should
be impossible.  Declaring `numplanes` as unsigned placates the compiler,
and these ints should be unsigned anyway because they index an array.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
sv_phys.c