13

For reasons best left unmentioned, I want to treat all warnings as erros, except for a single warning (deprecated) which I would like to tread as a warning.

Is there any more convenient way to do this than listing out all the warnings I want to treat as errors by hand?

Spacemoose
  • 3,856
  • 1
  • 27
  • 48

1 Answers1

17

You can do -Werror -Wno-error=deprecated.

Tom Tromey
  • 21,507
  • 2
  • 45
  • 63