summaryrefslogtreecommitdiff
path: root/panels/region
diff options
context:
space:
mode:
authorPablo Correa Gómez <ablocorrea@hotmail.com>2022-08-19 17:15:59 +0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2022-08-20 20:47:35 +0000
commit7846e57bfea1be02ece970947e62b30c57752fa8 (patch)
tree43d7484dd8ed91f90642fb8ad0df8a58329cc456 /panels/region
parent32b5e5dcb3d1fa9863dcff218b1f59a32cb428da (diff)
downloadgnome-control-center-7846e57bfea1be02ece970947e62b30c57752fa8.tar.gz
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; | ^~~
Diffstat (limited to 'panels/region')
-rw-r--r--panels/region/cc-format-preview.c2
1 files changed, 2 insertions, 0 deletions
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')