summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-04-11 18:07:38 +0000
committerChristos Zoulas <christos@zoulas.com>2022-04-11 18:07:38 +0000
commit00dc93170dcc569166ae7eb7aa501fab439b5daa (patch)
tree0e90216602fa52c71172d4ccbdc9a63ad84841dc /src/file.h
parent360cec7946d8f1d408187d68aebcd68f3eec68a6 (diff)
downloadfile-git-00dc93170dcc569166ae7eb7aa501fab439b5daa.tar.gz
fix unused warnings
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/file.h b/src/file.h
index de2413f7..51caa599 100644
--- a/src/file.h
+++ b/src/file.h
@@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.230 2022/03/19 19:52:09 christos Exp $
+ * @(#)$File: file.h,v 1.231 2022/04/11 18:07:38 christos Exp $
*/
#ifndef __file_h__
@@ -497,6 +497,9 @@ struct magic_set {
#if defined(HAVE_NEWLOCALE) && defined(HAVE_USELOCALE) && defined(HAVE_FREELOCALE)
#define USE_C_LOCALE
locale_t c_lc_ctype;
+#define file_locale_used
+#else
+#define file_locale_used __attribute__((__unused__))
#endif
};