Skip to content
Myr

shm: silence compiler warning

Before adoption: this commit came in with the history the project adopted, so no landing records it.

../../shm.c: In function ‘shm_get_buffer’: ../../shm.c:693:12: error: ‘ret’ may be used uninitialized [-Werror=maybe-uninitialized] 693 | return ret; | ^~~ ../../shm.c:691:20: note: ‘ret’ was declared here 691 | struct buffer *ret; | ^~~ cc1: all warnings being treated as errors

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 5df0df2 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:shm.c+1 added-1 removed
686 unmodified lines
687 assert(cached->public.pix_instances == chain->pix_instances);688 return &cached->public;689 }690691 struct buffer *ret;691 struct buffer *ret = NULL;692 get_new_buffers(chain, 1, &width, &height, &ret, with_alpha, false);693 return ret;694}695
391 unmodified lines