3

I'm looking for a compliler flag to disable the GCC #warning directive in Debug targets but not release targets. Does anyone know of a way to do this?

Matthew Bischoff
  • 1,043
  • 11
  • 27

1 Answers1

0

You could define NDEBUG for release builds and make the #warning conditional upon that?

echristo
  • 1,687
  • 10
  • 8