0001-MSVC-Add-warning-for-missing-function-declaration.patch
text/plain
Filename: 0001-MSVC-Add-warning-for-missing-function-declaration.patch
Type: text/plain
Part: 0
Message:
some extra warnings from MSVC
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 0001
Subject: MSVC: Add warning for missing function declaration
| File | + | − |
|---|---|---|
| meson.build | 1 | 0 |
From b0345430ae1bae1cea7092fde562aa137ac8b0c9 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Sat, 11 Apr 2026 12:23:23 +0200
Subject: [PATCH 1/3] MSVC: Add warning for missing function declaration
---
meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/meson.build b/meson.build
index be97e986e5d..240d0869af9 100644
--- a/meson.build
+++ b/meson.build
@@ -2328,6 +2328,7 @@ if cc.get_id() == 'msvc'
'/wd4244', # conversion from 'type1' to 'type2', possible loss of data
# Additional warnings to enable:
+ '/w24013', # 'function' undefined; assuming extern returning int' [like -Wimplicit-function-declaration]
'/w24062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled [like -Wswitch]
'/w24102', # unreferenced label [like -Wunused-label]
]
--
2.53.0