diff options
author | Yoctopuce <dev@yoctopuce.com> | 2024-01-30 09:46:17 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-02-15 11:00:50 +1100 |
commit | 5d83bbca60ea3f4071b9245daf8a41296072f918 (patch) | |
tree | 57d2dc606e16f8beb571644c990b3eabf854fb8b /shared/timeutils/timeutils.h | |
parent | 587b6f2e346eb0ab4c330f27fb144d9025ac9426 (diff) |
shared/timeutils: Remove useless void-return.
The C99 standard states:
6.8.6.4 The return statement Constraints
A return statement with an expression shall not appear in a function
whose return type is void. A return statement without an expression
shall only appear in a function whose return type is void.
And when `-pedantic` is enabled the compiler gives an error.
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
Diffstat (limited to 'shared/timeutils/timeutils.h')
-rw-r--r-- | shared/timeutils/timeutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/timeutils/timeutils.h b/shared/timeutils/timeutils.h index 9f4b500ca..69cbd95df 100644 --- a/shared/timeutils/timeutils.h +++ b/shared/timeutils/timeutils.h @@ -60,7 +60,7 @@ mp_uint_t timeutils_mktime_2000(mp_uint_t year, mp_int_t month, mp_int_t mday, static inline void timeutils_seconds_since_epoch_to_struct_time(uint64_t t, timeutils_struct_time_t *tm) { // TODO this will give incorrect results for dates before 2000/1/1 - return timeutils_seconds_since_2000_to_struct_time(t - TIMEUTILS_SECONDS_1970_TO_2000, tm); + timeutils_seconds_since_2000_to_struct_time(t - TIMEUTILS_SECONDS_1970_TO_2000, tm); } static inline uint64_t timeutils_mktime(mp_uint_t year, mp_int_t month, mp_int_t mday, mp_int_t hours, mp_int_t minutes, mp_int_t seconds) { |