This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix build warnings for functions without return value


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;
 }
 
 /**********************************************************************/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]