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
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
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
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