nuttx-apps/benchmarks/osperf
chenrun1 a7020e45cc benchmarks/osperf: fix warning maybe-uninitialized
Summary:
In function 'performance_gettime',
    inlined from 'hpwork_performance' at osperf.c:245:10:
osperf.c:123:3: error: 'result.end' may be used uninitialized [-Werror=maybe-uninitialized]
  123 |   up_perf_convert(result->end - result->start, &ts);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
osperf.c: In function 'hpwork_performance':
osperf.c:228:29: note: 'result.end' was declared here
  228 |   struct performance_time_s result;
      |                             ^~~~~~
CC:  audio/lib_buffer.c
CC:  common/arm64_initialize.c
CC:  builtin/lib_builtin_getname.c

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2025-03-05 20:00:52 +01:00
..
CMakeLists.txt benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
Kconfig benchmark: Build osperf only when pipes and hpwork are enabled 2024-09-05 13:52:35 +08:00
Make.defs benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
Makefile benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
osperf.c benchmarks/osperf: fix warning maybe-uninitialized 2025-03-05 20:00:52 +01:00