summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorTobias Mueller <[email protected]>2017-07-20 02:35:29 +0000
committerraveit65 <[email protected]>2017-08-20 16:35:37 +0200
commit6adf8d121576010e741d0302503f0bed25672004 (patch)
tree767097372c15e42f557f8e4cd1ccdba12110ec2b /backend
parent2f1f970cbbeba178de3be6cd24be25b4dca43b33 (diff)
downloadatril-6adf8d121576010e741d0302503f0bed25672004.tar.bz2
atril-6adf8d121576010e741d0302503f0bed25672004.tar.xz
mdvi-lib: Fix compilation warning (const-correctness)
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
Diffstat (limited to 'backend')
-rw-r--r--backend/dvi/mdvi-lib/fontmap.c2
1 files changed, 1 insertions, 1 deletions
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;