From 6adf8d121576010e741d0302503f0bed25672004 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Thu, 20 Jul 2017 02:35:29 +0000 Subject: mdvi-lib: Fix compilation warning (const-correctness) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit const char accessed via pointer to char. backend/dvi/mdvi-lib/fontmap.c: In function ‘mdvi_init_fontmaps’: backend/dvi/mdvi-lib/fontmap.c:725:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] config = kpse_cnf_get("mdvi-config"); ^ https://bugzilla.gnome.org/show_bug.cgi?id=784912 origin commit: https://git.gnome.org/browse/evince/commit/?id=e3dccc1 --- backend/dvi/mdvi-lib/fontmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/dvi/mdvi-lib') diff --git a/backend/dvi/mdvi-lib/fontmap.c b/backend/dvi/mdvi-lib/fontmap.c index 4d7cb576..20537c85 100644 --- a/backend/dvi/mdvi-lib/fontmap.c +++ b/backend/dvi/mdvi-lib/fontmap.c @@ -706,7 +706,7 @@ static int mdvi_init_fontmaps(void) FILE *in; Dstring input; int count = 0; - char *config; + const char *config; if(fontmaps_loaded) return 0; -- cgit v1.2.1