]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Disable warnings in system headers in MSVC
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 25 Mar 2026 14:03:30 +0000 (15:03 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 25 Mar 2026 14:03:52 +0000 (15:03 +0100)
commitbccfc73acde97cdb76ba36558ed394e89d3c808b
treea2ea80986116a16f63e2d687e2d4ca2cdaddb247
parent5282bf535e474dc2517f2e835d147420ae2144de
Disable warnings in system headers in MSVC

This is similar to the standard behavior in GCC.  For MSVC, we set all
headers in angle brackets to be considered system headers.  (GCC goes
by path, not include style.)

The required option is available since VS 2017.  (Before VS 2019
version 16.10, the additional option /experimental:external is
required, but per discussion in [0], we effectively require 16.11, so
this shouldn't be a problem.)

[0]: https://www.postgresql.org/message-id/04ab76a3-186c-4a37-8076-e6882ebf9d43%40eisentraut.org

Then, we can remove one workaround for avoiding a warning from a
system header.  (And some warnings to be enabled in the future could
benefit from this.)

Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/aa73q1aT0A3/vke/%40ip-10-97-1-34.eu-west-3.compute.internal
meson.build
src/backend/port/win32/crashdump.c