Skip to content

Commit 40dcf24

Browse files
committed
[compiler-rt] Silence warning when building with Clang ToT
This fixes: ``` [24/47] Generating SANITIZER_TEST_OBJECTS.sanitizer_bitvector_test.cpp.i386.o C:/git/llvm-project/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp:74:29: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'value_type' (aka 'unsigned long') [-Wformat] 74 | fprintf(stderr, "%zu ", *it); | ~~~ ^~~ | %lu 1 warning generated. ```
1 parent 03e4070 commit 40dcf24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void Print(const set<uptr> &s) {
7171
#if defined(_WIN64)
7272
fprintf(stderr, "%llu ", *it);
7373
#else
74-
fprintf(stderr, "%zu ", *it);
74+
fprintf(stderr, "%lu ", *it);
7575
#endif
7676
}
7777
fprintf(stderr, "\n");

0 commit comments

Comments
 (0)