C++ compiler warning to error option (-Werror)

C++ compiler warning to error option (-Werror)

por Paolo Ballarini -
Número de respuestas: 1

Hello

while composing a C++  exam I noticed that with CodeRunner (default setting) a number of warnings are turned to errors. For example comparisons between an int and an unsigned int, which produces a warning, within CodeRunner yields and error  due to the fact that -Werror=sign-compare is passed as an option to the compilation command.

__tester__.cpp:36:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         if(nfill
Is it possible to "override" (or remove) -Werror= options used by coderunner ?

How can one do that ?

Thanks in advance.

Best

Paolo