Commit a86f7668 authored by Andrew Gallagher's avatar Andrew Gallagher Committed by Facebook GitHub Bot

Suppress deprecation warnings on Apple platforms

Summary:
On Apple platforms, some of the ucontext methods used here are
deprecated.

Reviewed By: yfeldblum, snufkinsnorka

Differential Revision: D26765225

fbshipit-source-id: 92c7e554b1d1e98b7b8566079a0cb3a0e8afc2d3
parent 12593739
......@@ -395,6 +395,13 @@ MmapPtr allocateStack(ucontext_t* oucp, size_t pageSize) {
} // namespace
FOLLY_PUSH_WARNING
// On Apple platforms, some ucontext methods that are used here are deprecated.
#ifdef __APPLE__
FOLLY_GNU_DISABLE_WARNING("-Wdeprecated-declarations")
#endif
void UnsafeSelfAllocateStackTracePrinter::printSymbolizedStackTrace() {
if (pageSizeUnchecked_ <= 0) {
return;
......@@ -431,6 +438,8 @@ void UnsafeSelfAllocateStackTracePrinter::printSymbolizedStackTrace() {
}
}
FOLLY_POP_WARNING
#endif // FOLLY_HAVE_SWAPCONTEXT
} // namespace symbolizer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment