v1-0001-style-define-parameterless-functions-as-foo-void.patch
text/x-patch
Filename: v1-0001-style-define-parameterless-functions-as-foo-void.patch
Type: text/x-patch
Part: 0
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 v1-0001
Subject: style: define parameterless functions as foo(void).
| File | + | − |
|---|---|---|
| src/common/unicode/case_test.c | 1 | 1 |
| src/common/unicode/category_test.c | 1 | 1 |
From 4673d8c7a31b24970e6371c4f2fb3a5e099409dc Mon Sep 17 00:00:00 2001
From: Jeff Davis <jeff@j-davis.com>
Date: Thu, 16 Apr 2026 16:30:06 -0700
Subject: [PATCH v1 1/2] style: define parameterless functions as foo(void).
Avoids warning in 'update-unicode' build target. Similar to
11171fe1fc.
Backpatch-through: 17
---
src/common/unicode/case_test.c | 2 +-
src/common/unicode/category_test.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/unicode/case_test.c b/src/common/unicode/case_test.c
index fb159c1c27c..e34f700d9c4 100644
--- a/src/common/unicode/case_test.c
+++ b/src/common/unicode/case_test.c
@@ -329,7 +329,7 @@ tfunc_fold(char *dst, size_t dstsize, const char *src,
}
static void
-test_convert_case()
+test_convert_case(void)
{
/* test string with no case changes */
test_convert(tfunc_lower, "√∞", "√∞");
diff --git a/src/common/unicode/category_test.c b/src/common/unicode/category_test.c
index 2b422001209..ffb9d42d704 100644
--- a/src/common/unicode/category_test.c
+++ b/src/common/unicode/category_test.c
@@ -54,7 +54,7 @@ parse_unicode_version(const char *version)
* White_Space, and Hex_Digit.
*/
static void
-icu_test()
+icu_test(void)
{
int successful = 0;
int pg_skipped_codepoints = 0;
--
2.43.0