[Freeciv-Dev] compiling with --enable-debug
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
a-l@xxxxxxx wrote:
For testing, you should compile with debugging enabled (--enable-debug).
This enables CHECK_MAP_POS, which will catch some mistakes (real and
imagined).
This always gives me "treating warnings as errors" and refusing to
compile because of control reaching end of some non-void function or
another. Is that a problem with my compiler flags setup?
As was mentioned elsewhere, -Werror is used by default with debugging.
Like Per hinted at, this is because we are "supposed" to generate no
compiler warnings. If you get compiler warnings, please report them.
(You should get them when compiling without debugging, too, but they
won't be fatal.)
jason
|
|