1

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?

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

1 Answers1

1

Jeff Nadeau:

@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)

enter image description here

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