zephyr/tests/posix
Tom Hughes 424b255dd7 test: posix: timers: Fix unused function warning
Building with clang warns:

tests/posix/timers/src/clock.c:37:20: error: unused function 'tv_to_ts'
[-Werror,-Wunused-function]
static inline void tv_to_ts(const struct timeval *tv, struct timespec *ts)
                   ^
tests/posix/timers/src/clock.c:51:16: error: unused function 'tp_eq'
[-Werror,-Wunused-function]
_decl_op(bool, tp_eq, ==);     /* a == b */
               ^
tests/posix/timers/src/clock.c:52:16: error: unused function 'tp_lt'
[-Werror,-Wunused-function]
_decl_op(bool, tp_lt, <);      /* a < b */
               ^
tests/posix/timers/src/clock.c:53:16: error: unused function 'tp_gt'
[-Werror,-Wunused-function]
_decl_op(bool, tp_gt, >);      /* a > b */
               ^
tests/posix/timers/src/clock.c:54:16: error: unused function 'tp_le'
[-Werror,-Wunused-function]
_decl_op(bool, tp_le, <=);     /* a <= b */

tests/posix/timers/src/clock.c:59:20: error: unused function
'tp_diff_in_range_ns' [-Werror,-Wunused-function]
static inline bool tp_diff_in_range_ns(const struct timespec *a,
                   ^                   const struct timespec *b,

tests/posix/timers/src/clock.c:49:20: error: unused function
'tp_diff_in_range_ns' [-Werror,-Wunused-function]
static inline bool tp_diff_in_range_ns(const struct timespec *a,
                   ^                   const struct timespec *b,

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-03-24 07:53:10 +01:00
..
barriers tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
c_lib_ext tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
common boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
eventfd tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
fs tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
headers tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
net tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
rwlocks tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
semaphores tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
signals tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
single_process tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
spinlocks tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
threads_ext tests: posix: threads_ext: remove stale comment 2024-12-07 14:16:34 +01:00
timers test: posix: timers: Fix unused function warning 2025-03-24 07:53:10 +01:00
xsi_realtime lib: posix: Fix NULL pointer to strcmp in posix mqueue. 2025-03-08 03:37:48 +01:00
xsi_streams tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
xsi_system_logging tests: posix: add one integration platform per suite 2025-03-12 02:28:23 +01:00
xsi_threads_ext tests: posix: common: separate xsi_threads_ext into standalone test 2024-12-17 09:48:49 +01:00