Integer promotion rules in C are so deceptive.
I don't believe there's anybody who can reason about them at code skimming speeds. It's probably the best place to hide underhanded code.
I don't believe there's anybody who can reason about them at code skimming speeds. It's probably the best place to hide underhanded code.
-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.