make pcplusmp and apix warning-free
Both pcplusmp and apix have currently a bunch of gcc warnings disabled, and pcplusmp also disables a few lint warnings.
The gcc warnings are about a few uninitialized variables, but it turns out that gcc is confused here. Turning off the optimizer makes those warnings disappear. After checking the code and making sure those variables are never used uninitialized I think it's reasonable to initialize them to 0 to shut up gcc.
The lint warnings are mostly about implicit narrowing conversions. After checking that these are actually safe I turned them into explicit casts.
Updated by Electric Monk over 3 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 30acb30daf662150e9e016113303bd74f2379dfc Author: Hans Rosenfeld <email@example.com> Date: 2017-09-15T16:04:29.000Z 8626 make pcplusmp and apix warning-free Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Jerry Jelinek <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Approved by: Garrett D'Amore <email@example.com>