I like the -Werror
"Treat warnings as errors" cflag but I also like to use warning pragmas as a reminder to fix up things after compiling but before committing my changes. Is there a way to use both as the same time?
Asked
Active
Viewed 219 times
1

Steve Moser
- 7,647
- 5
- 55
- 94
1 Answers
1
@SteveMoser you can put -Wno-error=#warnings in your cflags and they’ll be relaxed back down to warnings. (Which is exactly what we do, project-wide)

Steve Moser
- 7,647
- 5
- 55
- 94