diff options
author | Tianyu Li <tianyu.li@arm.com> | 2021-07-29 13:22:04 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-11-05 19:32:27 +0000 |
commit | 2fcf7df44aa2d4a0d3be8e0fbf47dde05836ceb4 (patch) | |
tree | 3453207943056def2035e7400c0e643afc20bb11 /src/vlibmemory/socket_client.h | |
parent | 51ddd38deb5866b10bbe9712ba6e8c4fb6da6381 (diff) |
snort: fix unused result warning for gcc-10
make build-release CC=gcc-10
src/plugins/snort/daq_vpp.c:606:14: error:
ignoring return value of ‘read’ declared with
attribute ‘warn_unused_result’ [-Werror=unused-result]
606 | (void) read (qp->enq_fd, &ctr, sizeof (ctr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc void cast cannot suppress __attribute((warn_unused_result)),
use __attribute__((unused)) instead.
Type: fix
Fixes: 839b1473e968 ("snort: snort3 plugin and DAQ")
Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Change-Id: I7c7c8c2dbdc47c200b091c23ec2d992266596992
Diffstat (limited to 'src/vlibmemory/socket_client.h')
0 files changed, 0 insertions, 0 deletions