CI: enable clang-tidy bugprone-unsafe-functions / cert-msc24-c (#26573)

Signed-off-by: kuralme <kuralme@protonmail.com>
This commit is contained in:
Ege Kural
2026-02-24 17:43:03 -05:00
committed by GitHub
parent 54c1d121e4
commit 04f4ca8966
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -169,8 +169,6 @@ Checks: '*,
-readability-redundant-member-init,
-readability-reference-to-constructed-temporary,
-readability-simplify-boolean-expr,
-bugprone-unsafe-functions,
-cert-msc24-c,
-cert-msc32-c,
-cert-msc33-c,
-cert-msc51-cpp,
@@ -430,7 +430,7 @@ void Pxh::_setup_term()
term.c_lflag &= ~ICANON;
term.c_lflag &= ~ECHO;
tcsetattr(0, TCSANOW, &term);
setbuf(stdin, nullptr);
(void)setvbuf(stdin, nullptr, _IONBF, 0);
}
void Pxh::_restore_term()
+2 -2
View File
@@ -143,8 +143,8 @@ int px4_sem_timedwait(px4_sem_t *s, const struct timespec *abstime)
errno = ret;
if (ret != 0 && ret != ETIMEDOUT) {
setbuf(stdout, nullptr);
setbuf(stderr, nullptr);
(void)setvbuf(stdout, nullptr, _IONBF, 0);
(void)setvbuf(stderr, nullptr, _IONBF, 0);
const unsigned NAMELEN = 32;
char thread_name[NAMELEN] = {};
(void)pthread_getname_np(pthread_self(), thread_name, NAMELEN);