Add a return value to make compiler silent.
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 25 Jul 2013 12:38:09 +0000 (20:38 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 4 Aug 2013 08:53:36 +0000 (10:53 +0200)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
libubus-io.c

index 09f2dbf..1f7b0fb 100644 (file)
@@ -82,6 +82,9 @@ static int writev_retry(int fd, struct iovec *iov, int iov_len)
                }
                iov->iov_len -= cur_len;
        } while (1);
                }
                iov->iov_len -= cur_len;
        } while (1);
+
+       /* Should never reach here */
+       return -1;
 }
 
 int __hidden ubus_send_msg(struct ubus_context *ctx, uint32_t seq,
 }
 
 int __hidden ubus_send_msg(struct ubus_context *ctx, uint32_t seq,