rednblkx / HAP-ESPHome

Apple HomeKit for ESPHome
100 stars 10 forks source link

warnings while compiling #12

Closed klim123123 closed 3 months ago

klim123123 commented 3 months ago

Thank you for the project!!!! Everything works, but while compiling i get following warnings:

Compiling .pioenvs/wt32-eth01/src/main.cpp.o
Generating LD script .pioenvs/wt32-eth01/memory.ld
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/HK_HomeKit.cpp.o
In file included from src/esphome/components/homekit/HAPAccessory.h:13,
                 from src/esphome.h:22,
                 from src/main.cpp:3:
src/esphome/components/homekit/switch.hpp: In member function 'void esphome::homekit::SwitchEntity::setup()':
src/esphome/components/homekit/switch.hpp:64:9: warning: missing initializer for member 'hap_acc_cfg_t::name' [-Wmissing-field-initializers]
   64 |         };
      |         ^
src/esphome/components/homekit/switch.hpp:64:9: warning: missing initializer for member 'hap_acc_cfg_t::serial_num' [-Wmissing-field-initializers]
src/esphome/components/homekit/switch.hpp:64:9: warning: missing initializer for member 'hap_acc_cfg_t::hw_finish' [-Wmissing-field-initializers]
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/auth/hkAttestationAuth.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/auth/hkAuthContext.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/auth/hkFastAuth.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/auth/hkStdAuth.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/crypto/CommonCryptoUtils.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/crypto/DigitalKeySecureContext.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/crypto/ISO18013SecureContext.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/crypto/x963kdf.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/utils/BerTlv.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/utils/TLV8.cpp.o
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/utils/ndef.cpp.o
components/HK-HomeKit-Lib/src/utils/ndef.cpp: In member function 'std::vector<unsigned char> NDEFMessage::pack()':
components/HK-HomeKit-Lib/src/utils/ndef.cpp:52:56: warning: comparison is always true due to limited range of data type [-Wtype-limits]
   52 |     unsigned char sr = (1 << 8) >> 4 * (payload_length <= 255);
      |                                         ~~~~~~~~~~~~~~~^~~~~~
Compiling .pioenvs/wt32-eth01/components/HK-HomeKit-Lib/src/utils/utils.cpp.o
Compiling .pioenvs/wt32-eth01/app_trace/app_trace.c.o
rednblkx commented 3 months ago

Hi there!

That's fine, no need to worry about it.

Thanks for reporting it.