From 3102a093be2c6dd80d4e0b076cd184de6c6967d5 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 27 Sep 2018 18:48:40 +0200 Subject: [PATCH] evtranalyze(1): Fix -Wundef. --- usr.bin/evtranalyze/svg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/evtranalyze/svg.c b/usr.bin/evtranalyze/svg.c index 5c153b2045..e02fe228cc 100644 --- a/usr.bin/evtranalyze/svg.c +++ b/usr.bin/evtranalyze/svg.c @@ -184,7 +184,7 @@ void svg_text_init(struct svg_text *text, const char *cl) { xml_elem_init(&text->el, "text"); -#if remove +#if 0 /* remove */ xml_attribute_init(&text->x, "x", NULL); xml_elem_set_attribute(&text->el, &text->x); xml_attribute_init(&text->y, "y", NULL); @@ -217,7 +217,7 @@ int svg_text_draw(svg_document_t doc, svg_text_t text, svg_transform_t tf, const char *str, double fontsize) { -#if remove +#if 0 /* remove */ snprintf(&text->x_val[0], sizeof(text->x_val), "%.20lf", x); xml_attribute_set_value(&text->x, &text->x_val[0]); snprintf(&text->y_val[0], sizeof(text->y_val), "%.20lf", y); -- 2.11.4.GIT