Skip to content

Commit 58c8f49

Browse files
committed
Fix clang-tidy test
1 parent fed607e commit 58c8f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-vararg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ void my_printf(const char* format, ...) {
5151

5252
int my_vprintf(const char* format, va_list arg ); // OK to declare function taking va_list
5353

54-
void ignoredBuiltinsTest() {
55-
(void)__builtin_assume_aligned(0, 8);
54+
void ignoredBuiltinsTest(void *ptr) {
55+
(void)__builtin_assume_aligned(ptr, 8);
5656
(void)__builtin_constant_p(0);
5757
(void)__builtin_fpclassify(0, 0, 0, 0, 0, 0.f);
5858
(void)__builtin_isinf_sign(0.f);

0 commit comments

Comments
 (0)