diff options
| author | geniusgogo <[email protected]> | 2023-08-24 10:58:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-23 22:58:25 -0400 |
| commit | d55066e10d9b7e1bab272d9df3a1ff120e17a62e (patch) | |
| tree | b09d87ffb0dea0d2f4c0f6e10690afa33b875cc1 /components/libc/compilers/common | |
| parent | b4dac34167e2afaf8d9ec66fd0d493c1a155d9d0 (diff) | |
cleanup: fix building warnings
Diffstat (limited to 'components/libc/compilers/common')
| -rw-r--r-- | components/libc/compilers/common/ctime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c index 5147d8c17c..0e8843cf54 100644 --- a/components/libc/compilers/common/ctime.c +++ b/components/libc/compilers/common/ctime.c @@ -626,7 +626,7 @@ RTM_EXPORT(clock_gettime); int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *rqtp, struct timespec *rmtp) { struct timespec ts = {0}; - rt_err_t err; + rt_err_t err = -RT_EINVAL; if (rqtp == RT_NULL) { |
