diff options
author | lloyd <[email protected]> | 2009-12-23 02:13:21 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-23 02:13:21 +0000 |
commit | 763dbb60288a38e2070a95d3824d1d14dc7e618c (patch) | |
tree | ff4a884797b689b34e9d9f090271abc390c0def0 /src/build-data | |
parent | c6026d662ab26954460d5390934d6affa9c8127e (diff) |
Use /W3 with VC++ (/W4 is really noisy, but it seems mostly useless stuff).
But, disable warnings 4250 and 4251 in build.h with a pragma. Both seem
impossible to work around without very major code changes, and both seem
harmless AFAICT.
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/buildh.in | 6 | ||||
-rw-r--r-- | src/build-data/cc/msvc.txt | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index b784e287e..4e2e19f73 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -60,6 +60,12 @@ %{target_compiler_defines} +#if defined(BOTAN_TARGET_COMPILER_IS_MSVC) + // 4250: inherits via dominance (diamond inheritence issue) + // 4251: needs DLL interface (STL DLL exports) + #pragma warning(disable: 4250 4251) +#endif + /* Module definitions */ %{module_defines} diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt index 892e80c4b..36437e6a2 100644 --- a/src/build-data/cc/msvc.txt +++ b/src/build-data/cc/msvc.txt @@ -12,7 +12,7 @@ no_debug_flags "/O2" debug_flags "/Od /Zi /DDEBUG" check_opt_flags "/O2 /D_CONSOLE" lang_flags "/EHsc /GR" -warning_flags "" +warning_flags "/W3" shared_flags "/DBOTAN_DLL=__declspec(dllexport)" dll_import_flags "__declspec(dllimport)" |