]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: Fix unused variable compiler warning
authorHans de Goede <hdegoede@redhat.com>
Sat, 6 Mar 2021 09:54:31 +0000 (10:54 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 6 Mar 2021 09:57:05 +0000 (10:57 +0100)
Fix the following:

plugin.c: In function ‘show_splash_screen’:
plugin.c:1645:13: warning: unused variable ‘i’ [-Wunused-variable]
 1645 |         int i;
      |

Compiler warning which I introduced in:

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/132/

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/plugins/splash/two-step/plugin.c

index ed83d8bc2ab17e1de6bbcdc69927c65b7bb78948..9c8bc439eb56bd4b8f4320a127c0933260fbe80c 100644 (file)
@@ -1642,8 +1642,6 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
                     ply_buffer_t             *boot_buffer,
                     ply_boot_splash_mode_t    mode)
 {
-        int i;
-
         assert (plugin != NULL);
 
         plugin->loop = loop;