stardis-green

Post-processing of green functions
git clone git://git.meso-star.fr/stardis-green.git
Log | Files | Refs | README | LICENSE

commit 1730b215e759fde405d4245787cb21e8a7356f74
parent fe6158640b61d841a64356573b040166453aeecd
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 25 Nov 2020 16:39:18 +0100

Fix gcc warnings

Diffstat:
Msrc/green-compute.c | 6++++--
Msrc/green-output.c | 4++--
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/green-compute.c b/src/green-compute.c @@ -326,9 +326,11 @@ static int cmp_records (void const* r1, void const* r2) { + struct log_record* record1; + struct log_record* record2; ASSERT(r1 && r2); - const struct log_record* record1 = *(struct log_record**)r1; - const struct log_record* record2 = *(struct log_record**)r2; + record1 = *(struct log_record**)r1; + record2 = *(struct log_record**)r2; if(record1->line_num == record2->line_num) return record1->var_num - record2->var_num; return record1->line_num - record2->line_num; diff --git a/src/green-output.c b/src/green-output.c @@ -323,8 +323,8 @@ dump_green_info CELL(u, green->counts.tbound_count); CELL(u, green->counts.hbound_count); CELL(u, green->counts.fbound_count); - CELL(zu, green->counts.ok_count); - CELL(zu, green->counts.failed_count); + CELL(lu, (long unsigned)green->counts.ok_count); + CELL(lu, (long unsigned)green->counts.failed_count); fprintf(stream, "</tr>\n"); fprintf(stream, "</table>\n");