[gnome-control-center] region: fix possibly unused variable



commit 7846e57bfea1be02ece970947e62b30c57752fa8
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date:   Fri Aug 19 17:15:59 2022 +0200

    region: fix possibly unused variable
    
    ../panels/region/cc-format-preview.c: In function 'update_format_examples':
    ../panels/region/cc-format-preview.c:70:16: warning: unused variable 'fmt' [-Wunused-variable]
       70 |   const gchar *fmt;
          |                ^~~

 panels/region/cc-format-preview.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/region/cc-format-preview.c b/panels/region/cc-format-preview.c
index 1c111ed24..61b434b1b 100644
--- a/panels/region/cc-format-preview.c
+++ b/panels/region/cc-format-preview.c
@@ -67,7 +67,9 @@ update_format_examples (CcFormatPreview *self)
   locale_t old_locale;
   g_autoptr(GDateTime) dt = NULL;
   g_autofree gchar *s = NULL;
+#ifdef LC_MEASUREMENT
   const gchar *fmt;
+#endif
   g_autoptr(GtkPaperSize) paper = NULL;
 
   if (region == NULL || region[0] == '\0')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]