1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-29 00:22:21 +01:00

Enable a bunch of clang-tidy checks (#2149)

This commit is contained in:
Oxan van Leeuwen
2021-12-01 21:03:51 +01:00
committed by GitHub
parent f58828cb82
commit 607601b3a4
79 changed files with 206 additions and 296 deletions

View File

@@ -383,7 +383,7 @@ class LWIPRawImpl : public Socket {
return err;
}
ret += err;
if (err != iov[i].iov_len)
if ((size_t) err != iov[i].iov_len)
break;
}
return ret;
@@ -462,7 +462,7 @@ class LWIPRawImpl : public Socket {
return err;
}
written += err;
if (err != iov[i].iov_len)
if ((size_t) err != iov[i].iov_len)
break;
}
if (written == 0)