From 3fac352343b75b47229a35fc6845e6835be70bd3 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Tue, 8 Jun 2021 19:36:00 +0200 Subject: [PATCH] removed unused warning --- demofiles/demo.html.templ | 1 + src/main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/demofiles/demo.html.templ b/demofiles/demo.html.templ index 1f2df35..b39e77b 100644 --- a/demofiles/demo.html.templ +++ b/demofiles/demo.html.templ @@ -2,6 +2,7 @@ {# extends("layout.html.templ", title) #} %% + {% for(size_t i = 0; i < no; i++) %} {# render("greeting.templ", names[i]) #}
{% end %} diff --git a/src/main.c b/src/main.c index 23f6dc8..9fb0b7d 100644 --- a/src/main.c +++ b/src/main.c @@ -102,6 +102,7 @@ void generateArguments() { fprintf(output, "\t{\n"); for (size_t i = 0; i < result.params.no; i++) { fprintf(output, "\t\t%s = va_arg(argptr, %s);\n", result.params.names[i], result.params.types[i]); + fprintf(output, "\t\t(void) %s;\n", result.params.names[i]); } fprintf(output, "\t}\n"); }