[LTP] [PATCH 1/1] openposix/pthread_cancel/3-1: Move sleep loop into separate function
Petr Vorel
pvorel@suse.cz
Mon Aug 2 19:43:47 CEST 2021
Hi Jan,
> On Mon, Aug 2, 2021 at 6:30 PM Petr Vorel <pvorel@suse.cz> wrote:
> > to fix warning:
> > pthread_cancel/3-1.c:40:13: warning: variable ‘waited_for_cancel_ms’ might
> > be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
> > 40 | int waited_for_cancel_ms = 0;
> > Suggested-by: Martin Doucha <mdoucha@suse.cz>
> > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> Acked-by: Jan Stancek <jstancek@redhat.com>
Thanks a lot, merged!
Kind regards,
Petr
More information about the ltp
mailing list