Board index » cppbuilder » promote warning to error

promote warning to error


2004-02-13 02:33:26 AM
cppbuilder55
Is there a way to promote a warning to an error?
The warning is question is:
W8037 Non-const function 'function' called for const object
which should be an error but is only a warning. I would like it to be an
error.
 
 

Re:promote warning to error

Benjamin Pratt wrote:
Quote
Is there a way to promote a warning to an error?
I don't think there is a way to promote a specific warning to an error.
You might want to investigate the -gb and -w! compiler options. But they
don't quite do what you want, and I can't get either one to work in the IDE.
h^2