Simple: Treat warnings as errors option
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
It would be great to have a "Treat warnings as errors"
option which prevents object files from being created
if any warnings were generated during the compile
process. It forces clean code. (See VS6 or VS.NET for
examples of this feature.)
As a programmer (but sadly not a Delphi programmer),
this strikes me as an absolutely straight-forward
enhancement.
Logged In: YES
user_id=677295
Dev-C++ is not a compiler it is an IDE that uses gcc
compilers (MinGW by default). Gcc already has this option (-
Werror). However you have to add it manually, there is no
GUI access to this option so you have to know your compiler!
(Is that unreasonable?).
Personally I think that the number of options supported
directly by Dev-C++ needs to be improved, and this is
probably one of the more important ones.
Ref:http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/Warning-
Options.html#Warning%20Options
Clifford
Logged In: YES
user_id=158296
Thanks for the info. Adding "-Werror" is certainly a
suitable workaround that significantly lowers the priority
of this feature request. However, as you note, it would be
good to see this option at some point in the future.