This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] libomptarget: eliminate compiler warnings at build
ClosedPublic

Authored by sdmitriev on Jun 2 2017, 2:18 PM.

Details

Summary

Small change to silence compiler warnings about casing pointer to object to a pointer to function like this

.../llvm/projects/openmp/libomptarget/src/omptarget.cpp: In member function 'void RTLsTy::LoadRTLs()':
.../llvm/projects/openmp/libomptarget/src/omptarget.cpp:318:57: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Wpedantic]

dynlib_handle, "__tgt_rtl_is_valid_binary")))
                                          ^

Diff Detail

Event Timeline

sdmitriev created this revision.Jun 2 2017, 2:18 PM
grokos accepted this revision.Jun 2 2017, 2:44 PM

Looks good. Can you commit the patch?

This revision is now accepted and ready to land.Jun 2 2017, 2:44 PM

I do not have commit access, so I cannot commit it myself. Can you please check it in?

This revision was automatically updated to reflect the committed changes.

Because I've seen this on other revisions as well: Please always subscribe the relevant mailing list!