bind9/bin/tools
Ondřej Surý 789d253e3d Set WarningLevel to Level1 for Release, treat warnings as errors
Our vcxproj files set the WarningLevel to Level3, which is too verbose
for a code that needs to be portable.  That basically leads to ignoring
all the errors that MSVC produces.  This commits downgrades the
WarningLevel to Level1 and enables treating warnings as errors for
Release builds.  For the Debug builds the WarningLevel got upgraded to
Level4, and treating warnings as errors is explicitly disabled.

We should eventually make the code clean of all MSVC warnings, but it's
a long way to go for Level4, so it's more reasonable to start at Level1.

For reference[1], these are the warning levels as described by MSVC
documentation:

  * /W0 suppresses all warnings. It's equivalent to /w.
  * /W1 displays level 1 (severe) warnings. /W1 is the default setting
    in the command-line compiler.
  * /W2 displays level 1 and level 2 (significant) warnings.
  * /W3 displays level 1, level 2, and level 3 (production quality)
    warnings. /W3 is the default setting in the IDE.
  * /W4 displays level 1, level 2, and level 3 warnings, and all level 4
    (informational) warnings that aren't off by default. We recommend
    that you use this option to provide lint-like warnings. For a new
    project, it may be best to use /W4 in all compilations. This option
    helps ensure the fewest possible hard-to-find code defects.
  * /Wall displays all warnings displayed by /W4 and all other warnings
    that /W4 doesn't include — for example, warnings that are off by
    default.
  * /WX treats all compiler warnings as errors. For a new project, it
    may be best to use /WX in all compilations; resolving all warnings
    ensures the fewest possible hard-to-find code defects.

1. https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=vs-2019
2020-04-15 12:45:05 +02:00
..
win32 Set WarningLevel to Level1 for Release, treat warnings as errors 2020-04-15 12:45:05 +02:00
.gitignore Remove genrandom command and all usage of specific random files throughout the system test suite 2018-05-16 09:54:35 +02:00
arpaname.1 prep 9.15.8 2020-01-16 08:01:20 +00:00
arpaname.c apply the modified style 2020-02-13 15:05:06 -08:00
arpaname.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
arpaname.html prep 9.15.8 2020-01-16 08:01:20 +00:00
dnstap-read.1 prep 9.15.8 2020-01-16 08:01:20 +00:00
dnstap-read.c Use the new sorting rules to regroup #include headers 2020-03-09 16:19:22 +01:00
dnstap-read.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
dnstap-read.html prep 9.15.8 2020-01-16 08:01:20 +00:00
Makefile.in Link with LMDB only where needed 2020-03-16 09:38:15 +01:00
mdig.1 prep 9.15.8 2020-01-16 08:01:20 +00:00
mdig.c Refactor the isc_log API so it cannot fail on memory failures 2020-03-18 09:05:59 +01:00
mdig.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
mdig.html prep 9.15.8 2020-01-16 08:01:20 +00:00
named-journalprint.8 prep 9.15.8 2020-01-16 08:01:20 +00:00
named-journalprint.c Refactor the isc_log API so it cannot fail on memory failures 2020-03-18 09:05:59 +01:00
named-journalprint.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
named-journalprint.html prep 9.15.8 2020-01-16 08:01:20 +00:00
named-nzd2nzf.8 prep 9.15.8 2020-01-16 08:01:20 +00:00
named-nzd2nzf.c apply the modified style 2020-02-13 15:05:06 -08:00
named-nzd2nzf.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
named-nzd2nzf.html prep 9.15.8 2020-01-16 08:01:20 +00:00
named-rrchecker.1 prep 9.15.8 2020-01-16 08:01:20 +00:00
named-rrchecker.c fix spelling errors reported by Fossies. 2020-02-21 15:05:08 +11:00
named-rrchecker.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
named-rrchecker.html prep 9.15.8 2020-01-16 08:01:20 +00:00
nsec3hash.8 prep 9.15.8 2020-01-16 08:01:20 +00:00
nsec3hash.c Reformat using the new rules 2020-02-14 09:31:05 +01:00
nsec3hash.docbook update copyright year to 2020 2020-01-02 21:45:30 -08:00
nsec3hash.html prep 9.15.8 2020-01-16 08:01:20 +00:00