This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Silence a deprecation warning on FreeBSD
ClosedPublic

Authored by arichardson on Jan 19 2021, 4:59 AM.

Details

Summary

On FreeVBD the sys/timeb.h header has a #warning that it's deprecated.
However, we need to include this header here, so silence this warning that
is printed multiple times otherwise.

Diff Detail

Event Timeline

arichardson created this revision.Jan 19 2021, 4:59 AM
arichardson requested review of this revision.Jan 19 2021, 4:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2021, 4:59 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dim accepted this revision.Mar 8 2021, 4:27 AM

Yes please, this warning has annoyed me for ages. I think we can't get rid of this include entirely, since we need to get at the declarations even if they are deprecated.

This revision is now accepted and ready to land.Mar 8 2021, 4:27 AM
dim added a comment.Mar 8 2021, 4:27 AM

Oh please s/FreeVBD/FreeBSD in the description before committing :)