[PATCH] fix build warnings for functions without return value

Daniel Colascione dan.colascione@gmail.com
Wed Jul 28 21:11:00 GMT 2010


Stop warnings about function not returning a value; the value is meaningless
anyway, but the compiler can't know that.
Index: cygwin-1.7.5-1/winsup/cygwin/fhandler_tty.cc
===================================================================
--- cygwin-1.7.5-1.orig/winsup/cygwin/fhandler_tty.cc
+++ cygwin-1.7.5-1/winsup/cygwin/fhandler_tty.cc
@@ -221,6 +221,8 @@ process_input (void *)
 	  == line_edit_signalled)
 	tty_master->console->eat_readahead (-1);
     }
+
+  return 0;
 }
 
 bool
@@ -434,6 +436,8 @@ process_ioctl (void *)
 				  : (void *) &ttyp->arg);
       SetEvent (tty_master->ioctl_done_event);
     }
+
+  return 0;
 }
 
 /**********************************************************************/



More information about the Cygwin-patches mailing list