git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14ffaec)
Fix "‘static’ is not at beginning of declaration" warning
2025年3月29日 14:48:59 +0000 (10:48 -0400)
2025年3月29日 14:48:59 +0000 (10:48 -0400)
b98be8a2a2a used "const static" instead of "static const". We normally use the
latter form.

Discussion: https://postgr.es/m/z4mc2hzecahyq3paupfsouhuupmzmgum45md3k5my6bmo7gvn7@z5j26doqamqy


diff --git a/src/port/pg_localeconv_r.c b/src/port/pg_localeconv_r.c
index 89e5ccbd23ab81e385338bae1473ce6b77f79c7f..938b4f82e1217dc85d1128e94b40ec83ebe3ddfb 100644 (file)
--- a/src/port/pg_localeconv_r.c
+++ b/src/port/pg_localeconv_r.c
@@ -60,7 +60,7 @@ struct lconv_member_info
* column is the name of the nl_item, if translating from nl_langinfo_l() (it's
* always the member name, in upper case).
*/
-const static struct lconv_member_info table[] = {
+static const struct lconv_member_info table[] = {
/* String fields. */
LCONV_S(LC_NUMERIC, decimal_point, DECIMAL_POINT),
LCONV_S(LC_NUMERIC, thousands_sep, THOUSANDS_SEP),
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /