People keep losing money making coding mistakes that even "gcc -Wall -Werror" would refuse to compile. Examples: type errors like L1 vs L2 (whatever that even means, not a crypto person), wrong number of function parameters causing some sort of currying, allowing that massive ETH heist a few weeks back.
I'm sure there are hundreds of other similar horror stories.
"-Wextra -pedantic" would protect against even more bugs.
(I'm not saying C is a reasonable choice, just that JavaScript was a laughably bad choice.)