summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>2022-08-30 12:50:05 +0200
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>2022-08-30 15:14:20 +0200
commit016d6b357484ea34337f0c80ce74e77601cf3d1a (patch)
tree68d5343623507a0cc576c71afb9e3a9698aac099
parentab53751e89770f347a834ca2bb380c882249f8da (diff)
downloadnavit-016d6b357484ea34337f0c80ce74e77601cf3d1a.tar.gz
Fix:graphics:svg_debug: Fix -Wincompatible-pointer-types
we are assigning a char* to int*. So lets explicitly cast it to int*. This fixes: graphics_svg_debug.c:173:16: warning: assignment to ‘unsigned int *’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 173 | gc->dashed = dash_list; | ^
-rw-r--r--navit/graphics/svg_debug/graphics_svg_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/graphics/svg_debug/graphics_svg_debug.c b/navit/graphics/svg_debug/graphics_svg_debug.c
index 348906ad8..23ce4a297 100644
--- a/navit/graphics/svg_debug/graphics_svg_debug.c
+++ b/navit/graphics/svg_debug/graphics_svg_debug.c
@@ -170,7 +170,7 @@ static void svg_debug_gc_set_linewidth(struct graphics_gc_priv *gc, int w) {
static void svg_debug_gc_set_dashes(struct graphics_gc_priv *gc, int w,
int offset, unsigned char *dash_list, int n) {
- gc->dashed = dash_list;
+ gc->dashed = (unsigned int*)dash_list;
gc->is_dashed = TRUE;
if (gc->graphics_gc_methods_proxy->gc_set_dashes) {
gc->graphics_gc_methods_proxy->gc_set_dashes(gc->graphics_gc_priv_proxy,