Re: [PATCH 1/2] selftests:timers: posix_timers: Fix warn_unused_result in __fatal_error()

2024-09-25 Thread John Stultz
On Tue, Sep 24, 2024 at 8:57 AM Shuah Khan wrote: > > __fatal_error routine doesn't check strerror_r() return value, > which results in the following compile time warning: > > posix_timers.c: In function ‘__fatal_error’: > posix_timers.c:31:9: warning: ignoring return value of ‘strerror_r’ declare

Re: [PATCH 1/2] selftests:timers: posix_timers: Fix warn_unused_result in __fatal_error()

2024-09-25 Thread Shuah Khan
On 9/24/24 09:56, Shuah Khan wrote: __fatal_error routine doesn't check strerror_r() return value, which results in the following compile time warning: posix_timers.c: In function ‘__fatal_error’: posix_timers.c:31:9: warning: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_

[PATCH 1/2] selftests:timers: posix_timers: Fix warn_unused_result in __fatal_error()

2024-09-24 Thread Shuah Khan
__fatal_error routine doesn't check strerror_r() return value, which results in the following compile time warning: posix_timers.c: In function ‘__fatal_error’: posix_timers.c:31:9: warning: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 31