summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-15 14:59:50 -0600
committerTavian Barnes <tavianator@gmail.com>2010-06-15 14:59:50 -0600
commit91cc57a4a12997a72c2ec643f3560ad998daa87b (patch)
tree0b0e772fbe34a284abd1584652b7d3f74755a055 /dimension
parentde8a9632a6859010cc9d9bb4bcff721d640cdbd5 (diff)
downloaddimension-91cc57a4a12997a72c2ec643f3560ad998daa87b.tar.xz
Fix some -Wextra warnings.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/parse.c2
-rw-r--r--dimension/tokenize.c6
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 = { "<environment>", "<environment>", -1, -1, -1, -1 }
+ .location = { "<environment>", "<environment>", -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 <string.h>
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));