From c5a70dbd43f030b973fa26f13b580d14ccd877a2 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 24 Mar 2021 05:26:42 -0400 Subject: [PATCH] [sixel] clean up warnings from merge :( --- src/lib/render.c | 5 ++++- src/lib/sixel.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/render.c b/src/lib/render.c index 564635997..698688526 100644 --- a/src/lib/render.c +++ b/src/lib/render.c @@ -931,8 +931,11 @@ int sprite_kitty_annihilate(const notcurses* nc, const ncpile* p, FILE* out, spr } int sprite_sixel_annihilate(const notcurses* nc, const ncpile* p, FILE* out, sprixel* s){ - /* + (void)nc; + (void)p; (void)out; + (void)s; + /* struct crender* rvec = p->crender; // FIXME need to cap by ends minus bottom, right margins also const int ycap = nc->stdplane->leny + nc->margin_t; diff --git a/src/lib/sixel.c b/src/lib/sixel.c index d9f69f06d..1afca09c5 100644 --- a/src/lib/sixel.c +++ b/src/lib/sixel.c @@ -415,7 +415,7 @@ write_rle(int* printed, int color, FILE* fp, int seenrle, unsigned char crle){ // Emit the sprixel in its entirety, plus enable and disable pixel mode. static int -write_sixel_data(FILE* fp, int lenx, int leny, sixeltable* stab, int* parse_start, int* tacache){ +write_sixel_data(FILE* fp, int lenx, sixeltable* stab, int* parse_start, int* tacache){ *parse_start = fprintf(fp, "\ePq"); // Set Raster Attributes - pan/pad=1 (pixel aspect ratio), Ph=lenx, Pv=leny // using Ph/Pv causes a background to be drawn using color register 0 for all @@ -502,7 +502,7 @@ int sixel_blit_inner(ncplane* nc, int leny, int lenx, sixeltable* stab, free(buf); return -1; } - if(write_sixel_data(fp, lenx, leny, stab, &parse_start, tacache)){ + if(write_sixel_data(fp, lenx, stab, &parse_start, tacache)){ free(tacache); free(buf); return -1;