[PATCH mkfontscale] Drop 'const' from lists to muffle compiler warnings.
Egbert Eich
eich at freedesktop.org
Thu Jan 3 10:13:18 PST 2013
Gcc seems to be more picky about 'const' than it was in
the past. So don't make it expect that certain things are
const when this cannot be carried through all the way.
Signed-off-by: Egbert Eich <eich at freedesktop.org>
---
mkfontscale.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mkfontscale.c b/mkfontscale.c
index 53c5303..15efaac 100644
--- a/mkfontscale.c
+++ b/mkfontscale.c
@@ -60,7 +60,7 @@
#define QUOTE(x) #x
#define STRINGIFY(x) QUOTE(x)
-static const char *encodings_array[] =
+static char *encodings_array[] =
{ "ascii-0",
"iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5",
"iso8859-6", "iso8859-6.8", "iso8859-6.8x", "iso8859-6.16",
@@ -79,7 +79,7 @@ static const char *encodings_array[] =
"gb2312.1980-0", "gb18030.2000-0", "gb18030.2000-1",
"ksc5601.1987-0", "ksc5601.1992-3"};
-static const char *extra_encodings_array[] =
+static char *extra_encodings_array[] =
{ "iso10646-1", "adobe-fontspecific", "microsoft-symbol" };
static ListPtr encodings, extra_encodings;
--
1.7.7
More information about the xorg-devel
mailing list