[FFmpeg-cvslog] checkasm: Silence warnings about unused return value from read()
Martin Storsjö
git at videolan.org
Mon Aug 8 23:39:31 EEST 2022
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed May 25 10:27:37 2022 +0300| [5cdf4c0beda54c8fa5da7914c05b9ee28332c9b5] | committer: Martin Storsjö
checkasm: Silence warnings about unused return value from read()
This codepath is enabled by default on arm, if the linux perf API
is available, unless disabled with --disable-linux-perf.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5cdf4c0beda54c8fa5da7914c05b9ee28332c9b5
---
tests/checkasm/checkasm.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/checkasm/checkasm.h b/tests/checkasm/checkasm.h
index b601a98754..d7645d3730 100644
--- a/tests/checkasm/checkasm.h
+++ b/tests/checkasm/checkasm.h
@@ -230,8 +230,10 @@ typedef struct CheckasmPerf {
ioctl(sysfd, PERF_EVENT_IOC_ENABLE, 0); \
} while (0)
#define PERF_STOP(t) do { \
+ int ret; \
ioctl(sysfd, PERF_EVENT_IOC_DISABLE, 0); \
- read(sysfd, &t, sizeof(t)); \
+ ret = read(sysfd, &t, sizeof(t)); \
+ (void)ret; \
} while (0)
#elif CONFIG_MACOS_KPERF
#define PERF_START(t) t = ff_kperf_cycles()
More information about the ffmpeg-cvslog
mailing list