screen: add "pure" attribute
authorMax Kellermann <max@musicpd.org>
Mon, 19 Aug 2019 11:49:16 +0000 (13:49 +0200)
committerMax Kellermann <max@musicpd.org>
Mon, 19 Aug 2019 11:49:16 +0000 (13:49 +0200)
src/screen.cxx

index 24ce7c5..087de65 100644 (file)
@@ -100,8 +100,9 @@ ScreenManager::Swap(struct mpdclient &c, const struct mpd_song *song)
                Switch(*mode_fn_prev, c);
 }
 
+gcc_pure
 static int
-find_configured_screen(const char *name)
+find_configured_screen(const char *name) noexcept
 {
        unsigned i;