Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Testing with cmake . -DOPENMP_TEST_FLAGS="-Werror -Wno-#warnings" && ninja check-libomp breaks for the newly added tests.
openmp/runtime/test/api/omp_calloc_def_fb.c | ||
---|---|---|
16 | The compiler complains: llvm-project/openmp/runtime/test/api/omp_calloc_def_fb.c:15:43: error: format specifies type 'void *' but the argument has underlying type 'unsigned long' [-Werror,-Wformat] printf("allocator large created: %p\n", a); ~~ ^ %lu | |
openmp/runtime/test/api/omp_calloc_size_0.c | ||
16 ↗ | (On Diff #305237) | Similarly: llvm-project/openmp/runtime/test/api/omp_calloc_size_0.c:16:43: error: format specifies type 'void *' but the argument has underlying type 'unsigned long' [-Werror,-Wformat] printf("allocator large created: %p\n", a); ~~ ^ %lu Cast to (void *) seems reasonable, if you want to print as a pointer. |
clang-tidy: warning: invalid case style for function '__kmpc_calloc' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'gtid' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'nmemb' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'sz' [readability-identifier-naming]
not useful