Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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 | ||
|---|---|---|
| 15 | 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 | 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);
~~ ^
%luCast to (void *) seems reasonable, if you want to print as a pointer. | |
This assertion is wrong, as the size is allowed to be 0. Please remove it.