diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-27 17:48:03 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-27 17:48:03 +0100 |
commit | 0ae25fad05a9cb770e97b3577150a39151b638a0 (patch) | |
tree | 9b1e0b29fbdfe911d13c3cd53331cec6f5c43fda | |
parent | 12cb0f04a2656eb9e1a539263e44db7b54f94337 (diff) | |
download | eo_tokenizer-0ae25fad05a9cb770e97b3577150a39151b638a0.zip eo_tokenizer-0ae25fad05a9cb770e97b3577150a39151b638a0.tar.gz |
fix compilation warnings
-rw-r--r-- | eo_tokenizer.rl | 9 |
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) { |