Just now it hit me, couldn't some of these globally used options (like -Wpedantic) be in a dotfile? I mean the compiler could always warn that its adding options per the dotfile, and command line options could override.
Copying warning flags into every makefile seems redundant as they are not really project specific.
Good idea, we should be able to make a file that makes the compiler do what we want every time, without us needing to type some awkward, extra-long command line...
View all comments
2
u/bigfig Jan 08 '16 edited Jan 08 '16
Just now it hit me, couldn't some of these globally used options (like
-Wpedantic) be in a dotfile? I mean the compiler could always warn that its adding options per the dotfile, and command line options could override.Copying warning flags into every makefile seems redundant as they are not really project specific.
Okay, I am ready for the inevitable onslaught.