nasa / gunns

The NASA General-Use Nodal Network Solver (GUNNS) software
Other
46 stars 12 forks source link

Daniel's Code Clean-up #120

Closed DanielGhan closed 1 month ago

DanielGhan commented 2 months ago

My project is using lots of compiler warning flags, so I've been cleaning up GUNNS so it doesn't flood us with hundreds of warnings. Thanks to these warning flags, I've found and fixed several minor bugs in GUNNS. #113, #119, and a branch I'm still working on address these warnings.

-Wall -Wextra -Wshift-overflow -Warray-bounds -Wshadow -Wformat-overflow -Wformat=2 -Wformat-signedness -Wformat-truncation -Wimplicit-fallthrough=4 -Wignored-attributes -Wpacked -Wstringop-overflow=2 -Walloc-zero -Walloca -Wduplicated-cond -Wduplicated-branches -Wpointer-compare -Wcast-align -Wwrite-strings -Wdangling-else -Wdate-time -Wlogical-op -Waggressive-loop-optimizations -Wmissing-field-initializers -Wnormalized -Wrestrict -Woverlength-strings -Woverloaded-virtual -Wsign-promo -Wctor-dtor-privacy -Wregister -Wsign-promo -Wnon-virtual-dtor -Wswitch-default -Wduplicated-branches -Wdouble-promotion -Wfloat-conversion