MSVC: disable frequent compiler warnings
commitd12b818af736108360a4ca1a785fe14701cc64cd
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 13:41:39 +0000 (7 14:41 +0100)
committerKarsten Blees <blees@dcon.de>
Sat, 8 Jan 2011 16:30:12 +0000 (8 17:30 +0100)
treef710be4b6e3776443116073568e36a96e34ba9f7
parentdaa29299734d14321d6a5d9a900ecf9be64ee1be
MSVC: disable frequent compiler warnings

Using uninitialized variables to initialize themselves (i.e. 'type varname
= varname;') seems to be a frequent pattern in git. This is supposedly to
suppress the 'using uninitialized variable' warning, which is a bit
paradox, but seems to work with most compilers. MSVC correctly complains
here - disable C4090 warning.

MSVC also warns about implicit casts from non-const to const, which is
stupid - disable C4700 warning.

MSVC link.exe doesn't recognize the /wd option in CFLAGS in the Makefile,
so use #pragma warning in central, MSVC-specific unistd.h.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/vcbuild/include/unistd.h