Menu

#222 Simple: Treat warnings as errors option

open
nobody
None
5
2012-09-26
2004-01-27
Andrew Rose
No

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.

Discussion

  • Anonymous

    Anonymous - 2004-04-26

    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

     
  • Andrew Rose

    Andrew Rose - 2004-04-26

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.