Wouldn't "underhanded code" there require some ability to control UB?
-Wextra catches stuff like this, alas I know of a few people that think "-Wextra is evil" (even though annoying warnings can be selectively disabled)
I still remember being expected to pass -Wpedantic (and probably also -Wextra) in university.