clang static analyzer warning fixes
authorMatthias Braun <matze@braunis.de>
Sun, 14 Oct 2012 19:45:08 +0000 (21:45 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 30 Oct 2012 09:24:38 +0000 (10:24 +0100)
parser.c
wrappergen/write_fluffy.c
wrappergen/write_jna.c

index 6f3fecd..8108392 100644 (file)
--- 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:
index 6b5f448..7b66c74 100644 (file)
@@ -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);
        }
index 5e16edb..a31cf05 100644 (file)
@@ -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);
        }