cleanup: fix building warnings

This commit is contained in:
geniusgogo
2023-08-24 10:58:25 +08:00
committed by GitHub
parent b4dac34167
commit d55066e10d
3 changed files with 14 additions and 14 deletions

View File

@@ -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)
{