Turn on -Wextra if it's available and clean the warnings it found.
Review Request #989 — Created Oct. 3, 2021 and submitted — Latest diff uploaded
I also fixed most of the -Wpedantic warnings, but didn't turn it on as there are a bunch of issues with it involving function pointers.
Compiled and ran the unit tests.