[pango/wip/baedert/for-master: 47/53] pangocairo-render: Make a local const
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/wip/baedert/for-master: 47/53] pangocairo-render: Make a local const
- Date: Wed, 10 Jun 2020 04:12:55 +0000 (UTC)
commit 3b122eb3cc8b2585e8094a5f97c5a2c75fff2723
Author: Timm Bäder <mail baedert org>
Date: Wed Jun 10 05:21:06 2020 +0200
pangocairo-render: Make a local const
Avoiding this warning:
../pango/pangocairo-render.c:506:19: warning: assigning to 'char *' from 'const char *' discards
qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
for (row = 0, p = name; row < rows; row++)
^ ~~~~
pango/pangocairo-render.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index e268ebd5..614a3a44 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -374,7 +374,7 @@ _pango_cairo_renderer_draw_unknown_glyph (PangoCairoRenderer *crenderer,
PangoCairoFontHexBoxInfo *hbi;
gunichar ch;
gboolean invalid_input;
- char *p;
+ const char *p;
const char *name;
cairo_save (crenderer->cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]