clean up some compiler warnings on macOS

pull/2220/head
nick black 3 years ago
parent b5c161a07c
commit f816365aab

@ -1166,7 +1166,7 @@ int kitty_draw(const tinfo* ti, const ncpile* p, sprixel* s, fbuf* f,
animated = true;
}
int ret = s->glyph.used;
logdebug("dumping %zub for %u at %d %d\n", s->glyph.used, s->id, yoff, xoff);
logdebug("dumping %llub for %u at %d %d\n", s->glyph.used, s->id, yoff, xoff);
if(ret){
if(fbuf_putn(f, s->glyph.buf, s->glyph.used) < 0){
ret = -1;

@ -73,7 +73,7 @@ void nctabbed_ensure_selected_header_visible(nctabbed* nt){
static bool
nctabbed_validate_opts(const nctabbed_options* opts){
if(opts->flags > NCTABBED_OPTION_BOTTOM){
logwarn("Provided unsupported flags 0x%016jx\n", (uint64_t)opts->flags);
logwarn("Provided unsupported flags 0x%016llx\n", opts->flags);
}
if(opts->sepchan && !opts->separator){
logwarn("Provided non-zero separator channel when separator is NULL")

@ -99,7 +99,7 @@ prep_initial_path(nctree* n, unsigned maxdepth){
}
static nctree*
nctree_inner_create(ncplane* n, const struct nctree_options* opts){
nctree_inner_create(ncplane* n, const nctree_options* opts){
nctree* ret = malloc(sizeof(*ret));
if(ret){
ret->cbfxn = opts->nctreecb;
@ -122,9 +122,9 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){
return ret;
}
nctree* nctree_create(ncplane* n, const struct nctree_options* opts){
nctree* nctree_create(ncplane* n, const nctree_options* opts){
if(opts->flags){
logwarn("Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags);
logwarn("Passed invalid flags 0x%016llx\n", opts->flags);
}
if(opts->count == 0 || opts->items == NULL){
logerror("Can't create empty tree\n");

Loading…
Cancel
Save