Add --werror flag to treat warnings as errors.
The specific need for it was so that tests in tests_errors can test to see if a desired diagnostic warning is issued (like ptrcast-lose-info does.)
This commit is contained in:
3
ispc.h
3
ispc.h
@@ -348,6 +348,9 @@ struct Globals {
|
||||
/** Indicates whether all warning messages should be surpressed. */
|
||||
bool disableWarnings;
|
||||
|
||||
/** Indicates whether warnings should be issued as errors. */
|
||||
bool warningsAsErrors;
|
||||
|
||||
/** Indicates whether line wrapping of error messages to the terminal
|
||||
width should be disabled. */
|
||||
bool disableLineWrap;
|
||||
|
||||
Reference in New Issue
Block a user