[FFmpeg-devel] [PATCH 3/6] checkasm: remove unused variables
Rémi Denis-Courmont
remi at remlab.net
Wed Jul 19 22:55:37 EEST 2023
---
tests/checkasm/checkasm.c | 2 --
tests/checkasm/checkasm.h | 2 --
2 files changed, 4 deletions(-)
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index 933d85bac3..987162e6b5 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -522,7 +522,6 @@ static int measure_nop_time(void)
{
uint16_t nops[10000];
int i, nop_sum = 0;
- av_unused const int sysfd = state.sysfd;
#if CONFIG_LINUX_PERF || CONFIG_MACOS_KPERF
struct {
uint64_t (*start)(void);
@@ -900,7 +899,6 @@ CheckasmPerf *checkasm_get_perf_context(void)
{
CheckasmPerf *perf = &state.current_func_ver->perf;
memset(perf, 0, sizeof(*perf));
- perf->sysfd = state.sysfd;
perf->start = state.start;
perf->stop = state.stop;
return perf;
diff --git a/tests/checkasm/checkasm.h b/tests/checkasm/checkasm.h
index 3b3a1ab35b..80e6561e69 100644
--- a/tests/checkasm/checkasm.h
+++ b/tests/checkasm/checkasm.h
@@ -224,7 +224,6 @@ void *checkasm_get_wrapper(void);
#endif
typedef struct CheckasmPerf {
- int sysfd;
uint64_t cycles;
int iterations;
uint64_t (*start)(void);
@@ -247,7 +246,6 @@ typedef struct CheckasmPerf {
do {\
if (checkasm_bench_func()) {\
struct CheckasmPerf *restrict perf = checkasm_get_perf_context();\
- av_unused const int sysfd = perf->sysfd;\
func_type *tfunc = func_new;\
uint64_t tsum = 0;\
int ti, tcount = 0;\
--
2.40.1
More information about the ffmpeg-devel
mailing list