From a984eb367c032dbe2577f01238c3d1268526be70 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 19:24:38 +0100 Subject: Clang-tidy fixes --- lib/libc/assert/assert.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libc/assert/assert.c') diff --git a/lib/libc/assert/assert.c b/lib/libc/assert/assert.c index 367f5421..f0af5354 100644 --- a/lib/libc/assert/assert.c +++ b/lib/libc/assert/assert.c @@ -2,11 +2,9 @@ #include // for fprintf, stderr #include // for abort -_Noreturn void __assert(const char *_Nonnull __file, int __line, - const char *_Nonnull __func, +_Noreturn void __assert(const char *_Nonnull __file, int __line, const char *_Nonnull __func, const char *_Nonnull __expr) { - fprintf(stderr, "%s:%d: %s: assertion \"%s\" failed\n", __file, __line, - __func, __expr); + fprintf(stderr, "%s:%d: %s: assertion \"%s\" failed\n", __file, __line, __func, __expr); abort(); } -- cgit v1.2.3