Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Patch to suppress gcc warning about return of non-void function

1 view
Skip to first unread message

Josef Reidinger

unread,
Nov 29, 2011, 7:46:27 AM11/29/11
to bug-gn...@gnu.org
Hi,
I attach patch, that fix warning about missing return statement in
functions with non-void return statement.
Josef

--
Josef Reidinger
Software Engineer Appliance Department

SUSE LINUX, s. r. o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic

jreid...@suse.com
SUSE
gnuchess-return-nonvoid.patch

Antonio Ceballos

unread,
Nov 30, 2011, 2:14:36 PM11/30/11
to Josef Reidinger, bug-gn...@gnu.org
Hi Josef,

Thanks a lot for the patch. I had to add the -Wall flag to the g++ command for components.cc in order to see the warnings. Did you notice them with the original make files? On which system? SuSE, I presume?

Antonio Ceballos
GNU Chess Team


_______________________________________________
Bug-gnu-chess mailing list
Bug-gn...@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnu-chess


Josef Reidinger

unread,
Dec 1, 2011, 6:20:31 AM12/1/11
to Antonio Ceballos, bug-gn...@gnu.org
Hi Antonio,
I notice it when I build gnuchess in opensuse build service ( it is
automatic build system in chroot of target system - more info here -
http://en.opensuse.org//Portal:Build_Service ). And it automatic pass
-Wall and then search for specific warnings in build output and missing
return value is considered as serious, so it is printed in result as
warning. So it is not system dependent.
Josef

Antonio Ceballos

unread,
Dec 26, 2011, 7:07:11 AM12/26/11
to Josef Reidinger, bug-gn...@gnu.org
The patch is now uploaded in the Subversion repository in Savannah. It will be included in the next release. Thanks again for reporting and providing the patch.

--Antonio
0 new messages