From: Matthias Braun Date: Sun, 14 Oct 2012 19:45:08 +0000 (+0200) Subject: clang static analyzer warning fixes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5978b7f86fa5b30dbaf46fc4f91239a79a8b4c27;p=cparser clang static analyzer warning fixes --- diff --git a/parser.c b/parser.c index 6f3fecd..8108392 100644 --- a/parser.c +++ b/parser.c @@ -7021,7 +7021,6 @@ static void handle_builtin_argument_restrictions(call_expression_t *call) "third argument of '%Y' must be a constant expression", call->function->reference.entity->base.symbol); } - locality = rw->next; } break; default: diff --git a/wrappergen/write_fluffy.c b/wrappergen/write_fluffy.c index 6b5f448..7b66c74 100644 --- a/wrappergen/write_fluffy.c +++ b/wrappergen/write_fluffy.c @@ -289,8 +289,6 @@ static void write_function(const entity_t *entity) if(function_type->variadic) { if(!first) { fprintf(out, ", "); - } else { - first = 0; } fputs("...", out); } diff --git a/wrappergen/write_jna.c b/wrappergen/write_jna.c index 5e16edb..a31cf05 100644 --- a/wrappergen/write_jna.c +++ b/wrappergen/write_jna.c @@ -440,8 +440,6 @@ static void write_function(const entity_t *entity) if(function_type->variadic) { if(!first) { fprintf(out, ", "); - } else { - first = 0; } fputs("Object ... args", out); }