optional
optional copied to clipboard
Fix various compile warnings
This fixes some compile warnings. To avoid introducing new warnings by accident, I added the option OPTIONAL_WERROR
to the CMake config which allows to compile with the flags -Werror
, -Wall
, -Wextra
and -pedantic
. This option is disabled by default (to avoid errors when using for example a more recent compiler), but enabled on CI to make CI fail on warnings.
In addition, I added new CI jobs for GCC 9.x to increase compiler coverage.
Please let me know if I should change something. Especially with CMake I have no experience at all.
@TartanLlama any chance of having this PR merged?