summaryrefslogtreecommitdiff
path: root/src/til.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-13 18:27:10 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-13 23:27:20 -0700
commit3e3032cfa044268cee76735823755db274025021 (patch)
treeead68726685be0e1b6fdccd5c78f132dfb093517 /src/til.c
parent2825d01bf16f8b22f8eb9b92b2c21a654c13e563 (diff)
*: smattering of random small fixes to silence -Wall
I thought the build was already using -Wall but that seems to not be the case, maybe got lost somewhere along the line or messed up in configure.ac After forcing a build with -Wall -Werror, these showed up. Fixed up in the obvious way, nothing too scary.
Diffstat (limited to 'src/til.c')
-rw-r--r--src/til.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/til.c b/src/til.c
index e4df34e..fd9b167 100644
--- a/src/til.c
+++ b/src/til.c
@@ -467,10 +467,9 @@ int til_module_setup(const til_settings_t *settings, til_setting_t **res_setting
name = til_settings_get_value_by_idx(settings, 0, &setting);
if (!name || !setting->desc) {
- const char *values[nelems(modules) + 1] = {};
- const char *annotations[nelems(modules) + 1] = {};
- til_setting_desc_t *desc;
- int r;
+ const char *values[nelems(modules) + 1] = {};
+ const char *annotations[nelems(modules) + 1] = {};
+ int r;
for (unsigned i = 0, j = 0; i < nelems(modules); i++) {
/* XXX: This only skips experimental modules when no module setting was pre-specified,
© All Rights Reserved