NOAA-OWP / ngen

Next Generation Water Modeling Engine and Framework Prototype
Other
82 stars 57 forks source link

Fix the few most pressing warnings reported by -Wall #797

Closed PhilMiller closed 2 months ago

PhilMiller commented 2 months ago

Changes

Testing

  1. Local testing with GCC 13
  2. Local testing with AppleClang 15
  3. CI with GCC 11
  4. CI with AppleClang 14

Notes

This gets us a large portion of the way to being able to build with -Wall for C++

Checklist

PhilMiller commented 2 months ago

If we merge this, then the actual ngen code and its tests compiles with -Werror -Wall -Wno-reorder -Wno-unused -Wno-sign-compare on GCC 13. The others are less definitively problematic.

PhilMiller commented 2 months ago

The selection of flags added to CI is based on which ones are available for both GCC and AppleClang. Otherwise, the build just fails with unrecognized command line arguments.