]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Enable warning like -Wstrict-prototypes on MSVC as well
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 25 Mar 2026 14:03:30 +0000 (15:03 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 27 Mar 2026 07:28:07 +0000 (08:28 +0100)
This adds an MSVC warning option equivalent to those added in commit
29bf4ee7496 for GCC/Clang.

Note that this requires commit bccfc73acde (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

meson.build

index 7a140a394c8268d59a0c3bed68786b8b572406f1..ea31cbce9c0ff5c9a0d5015ecbb388543339f892 100644 (file)
@@ -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',