mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 22:59:54 -04:00
Enable warning like -Wstrict-prototypes on MSVC as well
This adds an MSVC warning option equivalent to those added in commit29bf4ee749for GCC/Clang. Note that this requires commitbccfc73acd(Disable warnings in system headers in MSVC). 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
This commit is contained in:
parent
874da8b1f6
commit
b4a1320224
1 changed files with 1 additions and 0 deletions
|
|
@ -2307,6 +2307,7 @@ if cc.get_id() == 'msvc'
|
|||
# Additional warnings to enable:
|
||||
'/w24062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled [like -Wswitch]
|
||||
'/w24102', # unreferenced label [like -Wunused-label]
|
||||
'/w24255', # 'function' : no function prototype given: converting '()' to '(void)' [like -Wstrict-prototypes]
|
||||
|
||||
# Disable warnings in system headers
|
||||
'/external:anglebrackets',
|
||||
|
|
|
|||
Loading…
Reference in a new issue