From 0239a4242ad7b0c44f8525b96e9d14a35474a0e0 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 10 Feb 2024 10:16:27 +0100 Subject: liberty-xdg: fix usage of volatile --- liberty-xdg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liberty-xdg.c b/liberty-xdg.c index 2c95668..9f0b9f8 100644 --- a/liberty-xdg.c +++ b/liberty-xdg.c @@ -462,7 +462,7 @@ icon_theme_open (const char *path) { volatile png_bytep buffer = NULL; volatile png_bytepp row_pointers = NULL; - volatile struct icon_theme_icon *result = NULL; + struct icon_theme_icon *volatile result = NULL; FILE *fp = fopen (path, "rb"); if (!fp) { @@ -535,7 +535,7 @@ fail: free (row_pointers); png_destroy_read_struct (&pngp, &infop, NULL); fclose (fp); - return (struct icon_theme_icon *) result; + return result; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3-70-g09d2