[PATCH] Fix build warnings in nptl/tst-eintr1.c

Stefan Liebler stli@linux.ibm.com
Tue Jun 25 13:16:00 GMT 2019


Hi,

this patch fixes the gcc warnings seen with gcc 9.1 -O3 on s390x:
tst-eintr1.c: In function ‘tf1’:
tst-eintr1.c:46:1: error: no return statement in function returning 
non-void [-Werror=return-type]
     46 | }
        | ^
tst-eintr1.c: In function ‘do_test’:
tst-eintr1.c:57:17: error: unused variable ‘th’ [-Werror=unused-variable]
     57 |       pthread_t th = xpthread_create (NULL, tf1, NULL);
        |                 ^~

Bye
Stefan

ChangeLog:

	* nptl/tst-eintr1.c (tf1): Add return statement.
	(do_test): Remove unused th variable.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20190624_warnings_nptl_tst-eintr1.patch
Type: text/x-patch
Size: 1295 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20190625/fd19fc44/attachment.bin>


More information about the Libc-alpha mailing list