diff options
author | Tobias Mueller <[email protected]> | 2017-07-20 02:35:29 +0000 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-20 16:35:37 +0200 |
commit | 6adf8d121576010e741d0302503f0bed25672004 (patch) | |
tree | 767097372c15e42f557f8e4cd1ccdba12110ec2b /backend/dvi | |
parent | 2f1f970cbbeba178de3be6cd24be25b4dca43b33 (diff) | |
download | atril-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/dvi')
-rw-r--r-- | backend/dvi/mdvi-lib/fontmap.c | 2 |
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; |