pgsql: Disable warnings in system headers in MSVC

Started by Peter Eisentraut4 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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]/messages/by-id/04ab76a3-186c-4a37-8076-e6882ebf9d43@eisentraut.org, we effectively require 16.11, so
this shouldn't be a problem.)

[0]: /messages/by-id/04ab76a3-186c-4a37-8076-e6882ebf9d43@eisentraut.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: /messages/by-id/aa73q1aT0A3/vke/@ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bccfc73acde97cdb76ba36558ed394e89d3c808b

Modified Files
--------------
meson.build | 4 ++++
src/backend/port/win32/crashdump.c | 14 --------------
2 files changed, 4 insertions(+), 14 deletions(-)