clang static analyzer warning fixes
[cparser] / wrappergen / write_fluffy.c
index 028adfd..7b66c74 100644 (file)
@@ -260,7 +260,7 @@ static void write_variable(const entity_t *entity)
 
 static void write_function(const entity_t *entity)
 {
-       if (entity->function.statement != NULL) {
+       if (entity->function.body != NULL) {
                fprintf(stderr, "Warning: can't convert function bodies (at %s)\n",
                        entity->base.symbol->string);
        }
@@ -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);
        }