From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 2 Aug 2021 19:43:47 +0200 Subject: [LTP] [PATCH 1/1] openposix/pthread_cancel/3-1: Move sleep loop into separate function In-Reply-To: References: <20210802163007.2282-1-pvorel@suse.cz> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Jan, > On Mon, Aug 2, 2021 at 6:30 PM Petr Vorel 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 > > Signed-off-by: Petr Vorel > Acked-by: Jan Stancek Thanks a lot, merged! Kind regards, Petr