Re: [ovs-dev] [PATCH] perf-counter: fix compiler warnings

2015-04-14 Thread Andy Zhou
On Tue, Apr 14, 2015 at 2:33 PM, Ben Pfaff wrote: > On Tue, Apr 14, 2015 at 02:27:26PM -0700, Andy Zhou wrote: >> Gcc complains about: >> lib/perf-counter.c:43:13: error: ignoring return value of 'read', >> declared with attribute warn_unused_result [-Werror=unused-result] >> read(fd__, c

Re: [ovs-dev] [PATCH] perf-counter: fix compiler warnings

2015-04-14 Thread Ben Pfaff
On Tue, Apr 14, 2015 at 02:27:26PM -0700, Andy Zhou wrote: > Gcc complains about: > lib/perf-counter.c:43:13: error: ignoring return value of 'read', > declared with attribute warn_unused_result [-Werror=unused-result] > read(fd__, counter, sizeof(*counter)); > > Signed-off-by: Andy Zhou

Re: [ovs-dev] [PATCH] perf-counter: fix compiler warnings

2015-04-14 Thread Russell Bryant
On 04/14/2015 05:27 PM, Andy Zhou wrote: > Gcc complains about: > lib/perf-counter.c:43:13: error: ignoring return value of 'read', > declared with attribute warn_unused_result [-Werror=unused-result] > read(fd__, counter, sizeof(*counter)); > > Signed-off-by: Andy Zhou > --- > lib/perf

[ovs-dev] [PATCH] perf-counter: fix compiler warnings

2015-04-14 Thread Andy Zhou
Gcc complains about: lib/perf-counter.c:43:13: error: ignoring return value of 'read', declared with attribute warn_unused_result [-Werror=unused-result] read(fd__, counter, sizeof(*counter)); Signed-off-by: Andy Zhou --- lib/perf-counter.c | 6 -- 1 file changed, 4 insertions(+), 2