summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eo_tokenizer.rl9
1 files changed, 4 insertions, 5 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl
index 7235c0e..daba5bb 100644
--- a/eo_tokenizer.rl
+++ b/eo_tokenizer.rl
@@ -13,9 +13,9 @@ _eo_tokenizer_abort(Eo_Tokenizer *toknz,
eina_log_vprint(_eo_tokenizer_log_dom, EINA_LOG_LEVEL_ERR,
file, fct, line, fmt, ap);
va_end(ap);
- fprintf(stderr, " toknz[%d] n:%d l:%d p:%d pe:%d ts:%d te:%d act:%d\n",
+ fprintf(stderr, " toknz[%d] n:%d l:%d p:%d pe:%d ts:%s te:%s act:%d\n",
toknz->cs, toknz->current_nesting, toknz->current_line,
- (toknz->p - toknz->buf), (toknz->pe - toknz->buf),
+ (int)(toknz->p - toknz->buf), (int)(toknz->pe - toknz->buf),
toknz->ts, toknz->te, toknz->act);
exit(EXIT_FAILURE);
}
@@ -61,7 +61,6 @@ static Eo_Param_Def*
_eo_tokenizer_param_get(Eo_Tokenizer *toknz, char *p)
{
char *s;
- char buf[BUFSIZE];
Eo_Param_Def *param = calloc(1, sizeof(Eo_Param_Def));
if (param == NULL) ABORT(toknz, "calloc Eo_Param_Def failure");
@@ -523,7 +522,7 @@ eo_tokenizer_get(void)
}
static char *_accessor_type_str[ACCESSOR_TYPE_LAST] = { "setter", "getter" };
-static char *_param_way_str[PARAM_WAY_LAST] = { "in", "out", "inout" };
+/* static char *_param_way_str[PARAM_WAY_LAST] = { "in", "out", "inout" }; */
void
eo_tokenizer_dump(Eo_Tokenizer *toknz)
@@ -535,7 +534,7 @@ eo_tokenizer_dump(Eo_Tokenizer *toknz)
Eo_Property_Def *prop;
Eo_Param_Def *param;
Eo_Accessor_Def *accessor;
- Eo_Ret_Def *ret;
+ /* Eo_Ret_Def *ret; */
EINA_LIST_FOREACH(toknz->classes, k, kls)
{