06-01-2010, 08:00 AM
I agree, since this is the most common scheme, Warnings will return a 0 error code.
If the programmer wants a non-zero error code, he/she might use a compiler flag like -Werror (which transforms warning into errors) or the like.
I'm also preparing a flag for enabling/disabling specific warnings in some places in the source code (e.g. disabling "Function is never called" warning temporarily, etc...).
If the programmer wants a non-zero error code, he/she might use a compiler flag like -Werror (which transforms warning into errors) or the like.
I'm also preparing a flag for enabling/disabling specific warnings in some places in the source code (e.g. disabling "Function is never called" warning temporarily, etc...).