build: Reintroduce warning flags from autotools
Some of the flags got lost in the meson transition or were demoted from error flags to warning flags. This commit reintroduces them. It also includes fixes for the code that had warnings with those flags. The big one being -Wshadow.
Showing with 40 additions and 39 deletions