]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
style: define parameterless functions as foo(void).
authorJeff Davis <jdavis@postgresql.org>
Tue, 3 Mar 2026 04:12:38 +0000 (20:12 -0800)
committerJeff Davis <jdavis@postgresql.org>
Tue, 3 Mar 2026 04:12:38 +0000 (20:12 -0800)
Change pg_icu_unicode_version() to pg_icu_unicode_version(void),
introduced by commit af2d4ca191. See commit 9b05e2ec08, which fixed
similar cases.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/aaEhpwrj1FY/8/7n@ip-10-97-1-34.eu-west-3.compute.internal

src/backend/utils/adt/pg_locale.c

index ac324ecaad2bd540642ee17accb8b94cffe8928a..6c5c1019e1efdefd96e9259ea3b7e75edea1ff3f 100644 (file)
@@ -1650,7 +1650,7 @@ pg_towlower(pg_wchar wc, pg_locale_t locale)
 
 /* version of Unicode used by ICU */
 const char *
-pg_icu_unicode_version()
+pg_icu_unicode_version(void)
 {
 #ifdef USE_ICU
        return U_UNICODE_VERSION;