This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] fix build warnings for functions without return value
- From: "Daniel Colascione" <dan dot colascione at gmail dot com>
- To: <cygwin-patches at cygwin dot com>
- Date: Wed, 28 Jul 2010 14:11:33 -0700
- Subject: [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;
}
/**********************************************************************/