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

Josef Reidinger <[email protected]> Tue, 29 Nov 2011 13:46:27 +0100
Newsgroups gmane.comp.gnu.chess.bugs
Organization SUSE linux
Message-ID <[email protected]>
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

[email protected]
SUSE

_______________________________________________
Bug-gnu-chess mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnu-chess
gnuchess-return-nonvoid.patch (text/x-patch, 353 B)
--- src/components.cc.old	2011-11-29 09:48:53.000000000 +0000
+++ src/components.cc	2011-11-29 09:56:31.000000000 +0000
@@ -65,6 +65,7 @@
   InitEngine();
   /* Start adapter main loop */
   adapter::main_adapter( 0, 0 );
+  return 0;
 }
 
 /*
@@ -100,6 +101,7 @@
 {
   /* Start engine main loop */
   engine::main_engine( 0, 0 );
+  return 0;
 }
 
 /*