From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner Scheinast Newsgroups: gmane.lisp.guile.bugs Subject: Re: 1.7.2: scmsigs.c,signal_delivery_thread Date: Mon, 9 May 2005 18:58:30 +0200 (CEST) Message-ID: References: <87vf5viz57.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1115657917 18222 80.91.229.6 (9 May 2005 16:58:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 16:58:37 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon May 09 18:58:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1DVBaR-0007NV-00 for ; Mon, 09 May 2005 18:58:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVBh6-0003bq-OU for guile-bugs@m.gmane.org; Mon, 09 May 2005 13:05:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVBgV-0003QK-D6 for bug-guile@gnu.org; Mon, 09 May 2005 13:04:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVBgO-0003Kr-7n for bug-guile@gnu.org; Mon, 09 May 2005 13:04:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVBgM-0003JB-QB for bug-guile@gnu.org; Mon, 09 May 2005 13:04:38 -0400 Original-Received: from [217.72.192.209] (helo=smtp05.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DVBh9-0006FR-Lc for bug-guile@gnu.org; Mon, 09 May 2005 13:05:28 -0400 Original-Received: from [80.185.220.129] (helo=kt12.fz-rossendorf.de) by smtp05.web.de with asmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.105 #282) id 1DVBb3-0007bd-00; Mon, 09 May 2005 18:59:10 +0200 Original-To: KevinRyde In-Reply-To: <87vf5viz57.fsf@zip.com.au> X-Sender: W.Scheinast@web.de X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:2854 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:2854 Am 07.05.05 schrieb KevinRyde: > Werner Scheinast writes: > > > > -Wall > > Did you add that? It's probably not a good idea. No, it was done automatically. (Or can there be a system-wide default option string?) I only added some processor optimization. > > scmsigs.c: In function `signal_delivery_thread': > > scmsigs.c:152: warning: no return statement in function returning non-void > > I don't think that function ever returns, gcc probably shouldn't > complain about such cases. I wonder why he reports a mere "warning" and then stops with a fatal error. > I guess it could be void, but the function pointer is used in a spot > where the prototype should be an SCM return. When I say "void", he exits with another message: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -pthread -O3 -march=pentium4 -mfpmath=sse -msse2 -Wall -Wmissing-prototypes -Werror -MT libguile_la-scmsigs.lo -MD -MP -MF .deps/libguile_la-scmsigs.Tpo -c scmsigs.c -fPIC -DPIC -o .libs/libguile_la-scmsigs.o scmsigs.c:125: error: two or more data types in declaration of `signal_delivery_thread' scmsigs.c: In function `start_signal_delivery_thread': scmsigs.c:160: warning: passing arg 1 of `scm_spawn_thread' from incompatible pointer type make[2]: *** [libguile_la-scmsigs.lo] Fehler 1 make[2]: Leaving directory `/home/werner/Archiv/guile-1.7.2/libguile' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/werner/Archiv/guile-1.7.2' make: *** [all] Fehler 2 When I follow Paul's suggestion and add "__attribute__((noreturn))" before the function name (right?), it doesn't change anything. Perhaps the mistake is somewhere else ... in my SuSE version of the gcc compiler or so ...? Thanks anyway for the tips Werner _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile