Describe the bug
[A clear and concise description of what the bug is.]
To Reproduce
Build on macOS Montaray 12.0.1. The error looks like this
# github.com/shirou/gopsutil/host
smc_darwin.c:75:41: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
Expected behavior
No depreciation warning.
Environment (please complete the following information):
[ ] Windows: [paste the result of ver]
[ ] Linux: [paste contents of /etc/os-release and the result of uname -a]
[X] Mac OS: [paste the result of sw_vers and uname -asw_vers:
Describe the bug [A clear and concise description of what the bug is.]
To Reproduce Build on macOS Montaray 12.0.1. The error looks like this
Expected behavior No depreciation warning.
Environment (please complete the following information):
ver
]/etc/os-release
and the result ofuname -a
]sw_vers
anduname -a
sw_vers
:name -a
:freebsd-version -k -r -u
anduname -a
]uname -a
]Additional context [Cross-compiling? Paste the command you are using to cross-compile and the result of the corresponding
go env
]