Skip to content

Compiler Warnings with esp-idf 5.1.1 #9085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
diplfranzhoepfinger opened this issue Jan 9, 2024 · 3 comments · Fixed by #9016
Closed

Compiler Warnings with esp-idf 5.1.1 #9085

diplfranzhoepfinger opened this issue Jan 9, 2024 · 3 comments · Fixed by #9016
Labels
Status: To be implemented Selected for Development

Comments

@diplfranzhoepfinger
Copy link
Contributor

diplfranzhoepfinger commented Jan 9, 2024

See:

/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::data4_io_num' [-Wmissing-field-initializers]
  410 |         };
      |         ^
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::data5_io_num' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::data6_io_num' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::data7_io_num' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::max_transfer_sz' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::flags' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::isr_cpu_id' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:410:9: warning: missing initializer for member 'spi_bus_config_t::intr_flags' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::command_bits' [-Wmissing-field-initializers]
  442 |     };
      |     ^
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::address_bits' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::dummy_bits' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::clock_source' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::duty_cycle_pos' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::cs_ena_pretrans' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::cs_ena_posttrans' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::flags' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::pre_cb' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:442:5: warning: missing initializer for member 'spi_device_interface_config_t::post_cb' [-Wmissing-field-initializers]
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:428:22: warning: unused variable 'eth_mac_config' [-Wunused-variable]
  428 |     eth_mac_config_t eth_mac_config = ETH_MAC_DEFAULT_CONFIG();
      |                      ^~~~~~~~~~~~~~
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:429:22: warning: variable 'phy_config' set but not used [-Wunused-but-set-variable]
  429 |     eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();
      |                      ^~~~~~~~~~
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:436:35: warning: unused variable 'spi_devcfg' [-Wunused-variable]
  436 |     spi_device_interface_config_t spi_devcfg = {
      |                                   ^~~~~~~~~~
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp: At global scope:
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:248:18: warning: 'esp_err_t _eth_spi_deinit(void*)' defined but not used [-Wunused-function]
  248 | static esp_err_t _eth_spi_deinit(void *ctx){
      |                  ^~~~~~~~~~~~~~~
/home/franz/git/hr/RDAm5stick/m5stick/components/arduino/libraries/Ethernet/src/ETH.cpp:244:14: warning: 'void* _eth_spi_init(const void*)' defined but not used [-Wunused-function]
  244 | static void *_eth_spi_init(const void *ctx){
      |              ^~~~~~~~~~~~~

@diplfranzhoepfinger diplfranzhoepfinger added the Type: Feature request Feature request for Arduino ESP32 label Jan 9, 2024
@diplfranzhoepfinger diplfranzhoepfinger changed the title cc Compiler Warnings with esp-idf 5.1.1 Jan 9, 2024
@Jason2866
Copy link
Collaborator

@me-no-dev see this warnings too when building with Arduino Lib Builder.

@me-no-dev
Copy link
Member

yes. this is new. will fix

@me-no-dev
Copy link
Member

@diplfranzhoepfinger would have been great if you actually filled the template properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: To be implemented Selected for Development
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants