Fix warnings
authorIan Lynagh <igloo@earth.li>
Sat, 23 May 2009 22:45:08 +0000 (22:45 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 23 May 2009 22:45:08 +0000 (22:45 +0000)
include/HsBase.h

index afbff12..c8de454 100644 (file)
@@ -770,13 +770,13 @@ void debugBelch2(const char*s, char *t);
 #if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
 
 INLINE int fcntl_read(int fd, int cmd) {
-    fcntl(fd, cmd);
+    return fcntl(fd, cmd);
 }
 INLINE int fcntl_write(int fd, int cmd, long arg) {
-    fcntl(fd, cmd, arg);
+    return fcntl(fd, cmd, arg);
 }
 INLINE int fcntl_lock(int fd, int cmd, struct flock *lock) {
-    fcntl(fd, cmd, lock);
+    return fcntl(fd, cmd, lock);
 }
 
 #endif