Closed Bug 1691121 Opened 3 years ago Closed 3 years ago

"warning: 'syscall' is deprecated" in profiler_current_thread_id()

Categories

(Core :: Gecko Profiler, defect, P2)

All
macOS
defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

 0:29.56 In file included from /Users/mstange/code/mozilla/tools/profiler/core/platform.cpp:3810:
 0:29.56 /Users/mstange/code/mozilla/tools/profiler/core/platform-macos.cpp:40:46: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
 0:29.56   return static_cast<int>(static_cast<pid_t>(syscall(SYS_thread_selfid)));
 0:29.56                                              ^
 0:29.56 /Users/mstange/SDKs/MacOSX10.12.sdk/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
 0:29.56 int      syscall(int, ...);
 0:29.56          ^
Severity: -- → S2
Priority: -- → P2
Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/78f62203e163
Use a more modern way to obtain the thread ID on macOS. r=gerald
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.