From b270e1fba25e48e972900f7ea391eedba5ce7672 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 10 Sep 2020 20:11:30 +0100 Subject: Remove unused data array --- test_gen.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/test_gen.c b/test_gen.c index 66e8369..0687146 100644 --- a/test_gen.c +++ b/test_gen.c @@ -139,7 +139,6 @@ static void unsigned_check(FILE *out, const struct fmtinfo *fi, enum endian e, u static void generate_simple(FILE *out, enum fmt fmt) { - unsigned char data[8]; struct fmtinfo *fi; bool sign; @@ -149,8 +148,6 @@ static void generate_simple(FILE *out, enum fmt fmt) sign = islower(fi->fmt); - assert(fi->size <= sizeof data); - fprintf(out, "TEST(%s)\n", cname(fi->type)); fprintf(out, "{\n"); fprintf(out, "\t%s v[1] = { __LINE__ };\n", fi->type); -- cgit v1.2.3-54-g00ecf