Skip to content

Commit

Permalink
Fix build failure caused by clang version 11.1.0 in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebaek committed Jan 18, 2022
1 parent 46c9735 commit 2d77432
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Support/Unix/Process.inc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ size_t Process::GetMallocUsage() {
return mi.uordblks;
#elif defined(HAVE_MALLINFO)
struct mallinfo mi;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
mi = ::mallinfo();
#pragma clang diagnostic pop
return mi.uordblks;
#elif defined(HAVE_MALLOC_ZONE_STATISTICS) && defined(HAVE_MALLOC_MALLOC_H)
malloc_statistics_t Stats;
Expand Down

0 comments on commit 2d77432

Please sign in to comment.