diff options
-rw-r--r-- | test/css21.c | 10 | ||||
-rw-r--r-- | test/dump_computed.h | 8 | ||||
-rw-r--r-- | test/select-auto.c | 2 |
3 files changed, 11 insertions, 9 deletions
diff --git a/test/css21.c b/test/css21.c index b19fc2e..47aaf2f 100644 --- a/test/css21.c +++ b/test/css21.c @@ -4,13 +4,15 @@ #include <libcss/libcss.h> #include "stylesheet.h" -#include "dump.h" -#include "testutils.h" - #define ITERATIONS (1) -#define DUMP_HASH (1) #define DUMP_CSS (1) +#if DUMP_CSS +#include "dump.h" +#endif + +#include "testutils.h" + static void *myrealloc(void *ptr, size_t len, void *pw) { UNUSED(pw); diff --git a/test/dump_computed.h b/test/dump_computed.h index 22aa639..7f3d141 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -141,10 +141,10 @@ static void dump_computed_style(const css_computed_style *style, char *buf, char *ptr = buf; size_t wrote = 0; uint8_t val; - css_colour color; - lwc_string *url; - css_fixed len1, len2; - css_unit unit1, unit2; + css_colour color = 0; + lwc_string *url = NULL; + css_fixed len1 = 0, len2 = 0; + css_unit unit1 = CSS_UNIT_PX, unit2 = CSS_UNIT_PX; /* background-attachment */ val = css_computed_background_attachment(style); diff --git a/test/select-auto.c b/test/select-auto.c index a4e6158..daef112 100644 --- a/test/select-auto.c +++ b/test/select-auto.c @@ -407,7 +407,7 @@ void parse_sheet(line_ctx *ctx, const char *data, size_t len) { const char *p; const char *end = data + len; - css_origin origin; + css_origin origin = CSS_ORIGIN_AUTHOR; uint64_t media = CSS_MEDIA_ALL; css_stylesheet *sheet; css_stylesheet **temp; |