From 508a655a8b5a3c470244835353ba2571fa00714b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 22 Apr 2023 16:30:20 +0300 Subject: [PATCH 35/35] Savegame: Silence "unused entry" warnings about gamestart values See osdn #47670 Signed-off-by: Marko Lindqvist --- server/settings.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/settings.c b/server/settings.c index 80b24482d9..dcd5aeb761 100644 --- a/server/settings.c +++ b/server/settings.c @@ -4811,6 +4811,11 @@ void settings_game_load(struct section_file *file, const char *section) } pset->setdef = SETDEF_CHANGED; + } else { + /* These values are saved even when they are not valid. + * Silence warnings caused by them. */ + (void) secfile_entry_lookup(file, "%s.set%d.gamestart", + section, i); } } settings_iterate_end; } -- 2.39.2