Is there a way to prevent a flag from being overridden by other flags on the command line?
For example, if I don’t want -Wfoo
can specify -Wno-foo
, but then -Wall
, which implicitly sets -Wfoo
, is specified later on in the path and BAM it’s turned on again. I’d like to prevent -Wall' from enabling the warning without having to remove
-Wno-footo after the
-Wallflag (due to compilation / Makefile details, where I can't modify when
-Wall` is added).
Cheers!
-bw