1

Possible Duplicate:
Can I treat a specific warning as an error?

I'd like to treat selected warnings as errors in my MS Visual Studio C++ 2008 project. Is that possible?

Community
  • 1
  • 1
quant_dev
  • 6,181
  • 1
  • 34
  • 57

1 Answers1

-1

Go to your project-> properties->C/C++
There is an option Treat warnings as errors. you can mark it as yes

Jan S
  • 1,831
  • 15
  • 21
  • 1
    Won't it raise ALL warnings to errors? – quant_dev Sep 16 '11 at 10:41
  • 1
    You can modify the compiler warning level - Take a look at http://stackoverflow.com/questions/4750880/can-i-treat-a-specific-warning-as-an-error It gives more options – Jan S Sep 16 '11 at 10:45