Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libvirtif Explicitly ignore return value of...
details: https://anonhg.NetBSD.org/src/rev/5194f230486f
branches: trunk
changeset: 787953:5194f230486f
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Jul 16 19:44:31 2013 +0000
description:
Explicitly ignore return value of writev() for sending a packet.
Otherwise you get the following with some compilers:
warning: ignoring return value of 'writev', declared with attribute warn_unused_result [-Wunused-result]
diffstat:
sys/rump/net/lib/libvirtif/rumpcomp_user.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2b98ae60db15 -r 5194f230486f sys/rump/net/lib/libvirtif/rumpcomp_user.c
--- a/sys/rump/net/lib/libvirtif/rumpcomp_user.c Tue Jul 16 19:40:01 2013 +0000
+++ b/sys/rump/net/lib/libvirtif/rumpcomp_user.c Tue Jul 16 19:44:31 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpcomp_user.c,v 1.8 2013/07/04 11:46:51 pooka Exp $ */
+/* $NetBSD: rumpcomp_user.c,v 1.9 2013/07/16 19:44:31 pooka Exp $ */
/*
* Copyright (c) 2013 Antti Kantee. All Rights Reserved.
@@ -134,7 +134,7 @@
void *cookie = rumpuser_component_unschedule();
/* no need to check for return value; packets may be dropped */
- writev(viu->viu_fd, iov, iovlen);
+ (void)writev(viu->viu_fd, iov, iovlen);
rumpuser_component_schedule(cookie);
}
Home |
Main Index |
Thread Index |
Old Index