]> git.ipfire.org Git - thirdparty/postgresql.git/commit
MSVC: Improve warning options set
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 28 Oct 2025 21:11:26 +0000 (22:11 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 6 Nov 2025 06:56:02 +0000 (07:56 +0100)
commit2307cfe31621d6077d9357aa7d6f4d8406c66b2d
tree0466e5d46835f8e76b839ae7c282efd0d8fd2c79
parent01a985c3c4fb138ac2753e1210eed084e6bd181f
MSVC: Improve warning options set

The previous code had a set of warnings to disable on MSVC.  But some
of these weren't actually enabled by default anyway, only in higher
MSVC warning levels (/W, maps to meson warning_level).  I rearranged
this so that it is clearer in what MSVC warning level a warning would
have been enabled.  Furthermore, sort them numerically within the
levels.

Moreover, we can add a few warning types to the default set, to get a
similar set of warnings that we get by default with gcc or clang (the
equivalents of -Wswitch and -Wformat).

Reviewed-by: Bryan Green <dbryan.green@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/bf060644-47ff-441b-97cf-c685d0827757@eisentraut.org
meson.build