@@ -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;
@@ -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;\