If i run ./configure && make on any big open source project, for example Ruby, it will be thousands of compiler warnings displayed in the console. Is it possible to run it with warnings suppressed (and errors shown, if any)?
If i run ./configure && make on any big open source project, for example
Share
Add
CFLAGS=-w CPPFLAGS=-w CXXFLAGS=-w LDFLAGS=-wto your configure line.Numbers!
There you have it.
Vanilla
configure && make: 1197 linesTurning off warnings: 989 lines
Savings: 17%
Turning off warnings in no way inhibits display of errors, so you’ll still know when things don’t work.
Disabling warnings: 17% fewer lines. Building Ruby repeatedly just to count the lines of output: priceless.