40 Commits

Author SHA1 Message Date
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
gfgtdf
02a97838b8 enable msvc bool conversion check.
we now enable warning 4800. I ran though the msvc compile with this
warning and i found some (in overlay.hpp, unit.cpp, whiteboard/move.cpp)
unintended implicit bool b = cfg["attributename"] casts that use
the implicit attribute_value to int cast and then a int to bool cast.
So for attributename=true b would be false. So i believe this
is a useful warning.

There are also a lot of implicit int to bool cast from the SDL and LUA
C-libraries which use int instead of bool because C doesn't have bool.
In this case this warning is less useful, but i still think it's worth
it since a "!= 0" or "== 1" isn't cost.

Plus if someone really wants to disable this warning he can still
disable it in the msvc project settings, while before is was not
possible for someone to enable this warning the the settings.
2014-04-27 20:01:50 +02:00
Mark de Wever
f9abb6eaf1 Improve the error when NDEBUG is defined.
Also add some comment to explain /why/ it should not be enabled.
2014-01-18 20:24:04 +01:00
Alexander van Gessel
de24b14676 Error out if NDEBUG is defined 2014-01-06 02:41:56 +01:00
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
Eric S. Raymond
043c4f9fd3 Remove $Id$ cookies. 2013-03-26 21:41:37 -04:00
J. Tyne
d1d5d1c5ab Typo (and grammar) corrections in a comment. 2013-02-23 17:29:43 +00:00
Mark de Wever
05277545ea Add a way to use the C++11 virtual specifiers.
The have not been used yet, but they will be added in the future.
2013-02-23 16:39:34 +00:00
Mark de Wever
56b7e3baa1 Enable C++11 define when the compiler does.
* Renames HAVE_CXX0X to HAVE_CXX11 to be in line with the offical name.

* Depends on __cplusplus being defined as >= 201103L.
2013-02-23 16:39:29 +00:00
Mark de Wever
43b71f2ff0 New year copyright update. 2013-01-01 09:22:03 +00:00
Anonymissimus
8c5c21ca74 reenable MSVC warning C4099 since CLang has a similar warning 2012-07-06 17:40:42 +00:00
Anonymissimus
6b56c96ab0 mute MSVC warnings C4099 and disable them globally
according to mordante's suggestion
2012-05-20 16:30:10 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Anonymissimus
8544ca1726 rename an include gard 2011-06-03 21:15:07 +00:00
Anonymissimus
7f0cb881db moved disabled warnings from projectfiles to global.hpp 2011-06-02 19:54:32 +00:00
Lukasz Dobrogowski
a67458dc4e typo fix in comment 2011-05-27 22:04:13 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Mark de Wever
5dcb8929e7 MSVC 6 and 9 cleanup.
Now that MSVC 6 is no longer supported start to remove some helper code to work
around problems in that compiler. The first step is to comment out the code and
replace it with new helper code that uses the standard. The second step is to
remove the helper code and fix all callers.

Patch 1/3 for step 2: Clear global.hpp, but add some MSVC9 workarounds.
2008-08-24 16:11:50 +00:00
Mark de Wever
2c537d11d3 Now that MSVC 6 is no longer supported start to remove some helper code...
...to work around problems in that compiler. The first step is to
comment out the code and replace it with new helper code that uses the
standard. The second step is to remove the helper code and fix all
callers.

Patch 1/3 for step 1: Comment out global.hpp.
2008-08-20 05:13:42 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Patrick Parker
c07d52b61a [[miscellaneous engine fixes]]
-fix del_tags to span multiple lines

-new method nullify_markup to display error messages containing '#else', etc

-fix an iterator redefinition in the animation code

-add lots of global std namespace fixes for MSVC
2008-01-05 15:34:00 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Mark de Wever
7003277d4c removed the UNUSED definition,
it breaks on my gcc and there's a portable way to avoid the unused
parameter warning
2007-06-28 16:31:05 +00:00
Eric S. Raymond
fc4c279d0d Bring back UNUSED, it's going to be needed for some stub functions. 2007-06-22 14:46:12 +00:00
Mark de Wever
b68d0a56bf And another patch to kill the unused parameter warnings,
...but in a portable way.  Also restore the default value for
can_execute_command which was removed before.
2007-06-09 06:34:05 +00:00
Patrick Parker
f6b86f0b95 Move definition of UNUSED to global.hpp to avoid extra includes 2007-06-09 04:36:47 +00:00
András Salamon
747c164b7e gcc on Windows fix 2005-12-07 11:37:11 +00:00
Jörg Hinrichs
dafeaad042 replay: added "skip animation" functionality
minor corrections for vc++ compile
2005-11-12 22:55:09 +00:00
Isaac Clerencia Perez
4c8478a4cd Remove svn:executable property from lots of files 2005-10-11 19:03:59 +00:00
András Salamon
cc1b0aecf0 add copyright notices (please change as appropriate), and deDOSify 2005-07-20 08:22:37 +00:00
Guillaume Melquiond
6ab15adf01 Remove duplicated workaround. 2005-01-12 23:10:10 +00:00
Dave White
5ce08cda25 fix to compile errors on VC++ 2005-01-08 18:02:06 +00:00
Guillaume Melquiond
a2fa7dd9c6 Another try at satisfying both MSVC and Irix CC...
...with respect to mathematical functions.
2005-01-07 23:55:47 +00:00
Guillaume Melquiond
103b6871e8 dos2unix, and newline at eof 2004-11-18 18:35:03 +00:00
Dave White
c661b3043a reduced warnings to 0 on VC++ 2004-11-18 04:08:33 +00:00