This is an archive of the discontinued LLVM Phabricator instance.

[openmp] [test] Fix warnings about printf format mismatches on Windows
ClosedPublic

Authored by mstorsjo on Nov 9 2022, 2:27 PM.

Details

Summary

This fixes warnings like this:

openmp/runtime/test/omp_testsuite.h:107:60: warning: format specifies type 'unsigned int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat]
    fprintf(stderr, "CreateThread() failed: Error #%u.\n", GetLastError());
                                                   ~~      ^~~~~~~~~~~~~~
                                                   %lu

Diff Detail

Event Timeline

mstorsjo created this revision.Nov 9 2022, 2:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2022, 2:27 PM
mstorsjo requested review of this revision.Nov 9 2022, 2:27 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: sstefan1. · View Herald Transcript
This revision is now accepted and ready to land.Nov 17 2022, 2:18 PM