dkorunic / iSMC

Apple SMC CLI tool that can decode and display temperature, fans, battery, power, voltage and current information
GNU General Public License v3.0
113 stars 13 forks source link

Deprecation warning shown during build #6

Closed roele closed 2 years ago

roele commented 2 years ago

While building the executable (MacBook M1 Pro, macOS 12.3.1) the following warning is shown.

 ❯ go build .
# github.com/panotza/gosmc
smc.c:73:5: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:132:1: note: 'IOMasterPort' has been explicitly marked deprecated here
dkorunic commented 2 years ago

Hi @roele , that's expected and comes from panotza/gosmc, it being an interface for old SMC.c Apple leak. I can't do anything there, but we are lucky that it still works.