aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-02-28 12:51:35 +0900
committerMichael Paquier <michael@paquier.xyz>2024-02-28 12:51:35 +0900
commit48920476b490544a3ee137da714424cd354bc2b6 (patch)
tree87b276db727483cacfdf2f272063ab4d4ad28661
parent413c18401dcc170636429127e2494d8beba4b92f (diff)
downloadpostgresql-48920476b490544a3ee137da714424cd354bc2b6.tar.gz
postgresql-48920476b490544a3ee137da714424cd354bc2b6.zip
Remove last NULL element in config_group_names[]
This has not been needed since 9d77708d83ee where there was a loop to print all the possible GUC groups, relying on the last element to be NULL. Author: Japin Li Reviewed-By: Jelte Fennema-Nio Discussion: https://postgr.es/m/CAGECzQT3caUbcCcszNewCCmMbCuyP7XNAm60J3ybd6PN5kH2Dw@mail.gmail.com
-rw-r--r--src/backend/utils/misc/guc_tables.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c
index a63ea042edf..f5dcb5503a6 100644
--- a/src/backend/utils/misc/guc_tables.c
+++ b/src/backend/utils/misc/guc_tables.c
@@ -715,11 +715,9 @@ const char *const config_group_names[] =
[PRESET_OPTIONS] = gettext_noop("Preset Options"),
[CUSTOM_OPTIONS] = gettext_noop("Customized Options"),
[DEVELOPER_OPTIONS] = gettext_noop("Developer Options"),
- /* help_config wants this array to be null-terminated */
- NULL
};
-StaticAssertDecl(lengthof(config_group_names) == (DEVELOPER_OPTIONS + 2),
+StaticAssertDecl(lengthof(config_group_names) == (DEVELOPER_OPTIONS + 1),
"array length mismatch");
/*