mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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@martin.st>
This commit is contained in:
parent
a5e025e826
commit
5cdf4c0bed
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user