aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-10 20:11:30 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-10 20:11:30 +0100
commitb270e1fba25e48e972900f7ea391eedba5ce7672 (patch)
treecb3f0131b4da31033b064be4bffcb0c3dc63621c
parent90cac1dd94c7dca59ea8311725177aee06d108b0 (diff)
downloadpack-b270e1fba25e48e972900f7ea391eedba5ce7672.tar.gz
pack-b270e1fba25e48e972900f7ea391eedba5ce7672.tar.xz
pack-b270e1fba25e48e972900f7ea391eedba5ce7672.zip
Remove unused data array
-rw-r--r--test_gen.c3
1 files changed, 0 insertions, 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);