You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second issue is with macOS where the functionsyscall is deprecated:
fmtlog/fmtlog-inl.h:294:44: 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]
uint32_t tid = static_cast<uint32_t>(::syscall(SYS_gettid));
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:746:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
1 warning generated.
Pulled "main" today and included in a C++ program which I am compiling on macOS.
I had 2 issues, the first is as follows:
I rectified this adding
#define FMT_NOEXCEPT
to my source file prior to#include <fmtlog/fmtlog.h>
I now have:The second issue is with macOS where the function
syscall
is deprecated:I have patched locally by adding the following:
The text was updated successfully, but these errors were encountered: