From 91cc57a4a12997a72c2ec643f3560ad998daa87b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 15 Jun 2010 14:59:50 -0600 Subject: Fix some -Wextra warnings. --- dimension/parse.c | 2 +- dimension/tokenize.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dimension/parse.c b/dimension/parse.c index 39344b5..3216962 100644 --- a/dimension/parse.c +++ b/dimension/parse.c @@ -324,7 +324,7 @@ dmnsn_new_astnode(dmnsn_astnode_type type) .ptr = NULL, .free_fn = NULL, .refcount = dmnsn_malloc(sizeof(unsigned int)), - .location = { "", "", -1, -1, -1, -1 } + .location = { "", "", -1, -1, -1, -1, NULL } }; *astnode.refcount = 0; diff --git a/dimension/tokenize.c b/dimension/tokenize.c index 98253ce..48d0958 100644 --- a/dimension/tokenize.c +++ b/dimension/tokenize.c @@ -26,13 +26,13 @@ #include typedef struct dmnsn_buffered_token { - int type; + dmnsn_token_type type; dmnsn_parse_item lval; dmnsn_parse_location lloc; } dmnsn_buffered_token; typedef struct dmnsn_token_buffer { - int type; + dmnsn_token_type type; /* Indicate that the first token should be returned as-is */ #define DMNSN_T_LEX_VERBATIM DMNSN_T_EOF @@ -47,7 +47,7 @@ typedef struct dmnsn_token_buffer { } dmnsn_token_buffer; static dmnsn_token_buffer * -dmnsn_new_token_buffer(dmnsn_parse_location lloc, int type, +dmnsn_new_token_buffer(dmnsn_parse_location lloc, dmnsn_token_type type, dmnsn_token_buffer *prev, const char *filename) { dmnsn_token_buffer *tbuffer = dmnsn_malloc(sizeof(dmnsn_token_buffer)); -- cgit v1.2.3