v2-0002-Enable-warning-like-Wstrict-prototypes-on-MSVC-as.patch
text/plain
Filename: v2-0002-Enable-warning-like-Wstrict-prototypes-on-MSVC-as.patch
Type: text/plain
Part: 1
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v2-0002
Subject: Enable warning like -Wstrict-prototypes on MSVC as well
| File | + | − |
|---|---|---|
| meson.build | 1 | 0 |
From 61761a488443420ace79442c77a8f159bb650d83 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Mon, 23 Mar 2026 16:04:02 +0100
Subject: [PATCH v2 2/4] Enable warning like -Wstrict-prototypes on MSVC as
well
---
meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/meson.build b/meson.build
index 79cc7b4e758..cfd590117dc 100644
--- a/meson.build
+++ b/meson.build
@@ -2308,6 +2308,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]
'/w24777', # 'function' : format string 'string' requires an argument of type 'type1', but variadic argument number has type 'type2' [like -Wformat]
# Disable warnings in system headers
--
2.53.0