summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-10-14 21:45:08 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-10-30 10:24:38 +0100
commit5978b7f86fa5b30dbaf46fc4f91239a79a8b4c27 (patch)
treefdedf5fec9c2fbb3d917d9bd064599bb818303f3
parent153e93817a076e8433729c174aee614b892b9dc0 (diff)
clang static analyzer warning fixes
-rw-r--r--parser.c1
-rw-r--r--wrappergen/write_fluffy.c2
-rw-r--r--wrappergen/write_jna.c2
3 files changed, 0 insertions, 5 deletions
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);
}