Enable compiler warnings, remove dead code, fix unused variable

This commit is contained in:
Ian Gulliver
2026-04-04 20:52:54 +09:00
parent 6f95d5d595
commit 3af0f7695d
3 changed files with 2 additions and 7 deletions

View File

@@ -20,6 +20,8 @@ target_include_directories(picomap PRIVATE
w6300
)
target_compile_options(picomap PRIVATE -Wall -Wextra -Wno-unused-parameter)
pico_generate_pio_header(picomap ${CMAKE_CURRENT_LIST_DIR}/w6300/pio.pio)
pico_enable_stdio_usb(picomap 1)

View File

@@ -434,7 +434,6 @@ public:
result<parser> next() const {
auto hdr = header_byte();
if (!hdr) return std::unexpected(hdr.error());
uint8_t b = *hdr;
if (is_array()) {
auto info = get_body_info(m_p, m_size);

View File

@@ -664,12 +664,6 @@ void wiz_recv_ignore(uint8_t sn, uint16_t len) {
setSn_RX_RD(sn, getSn_RX_RD(sn) + len);
}
void wiz_delay_ms(uint32_t milliseconds) {
for (uint32_t i = 0; i < milliseconds; i++) {
setTCNTRCLR(0xff);
while (getTCNTR() < 0x0a) {}
}
}
void wiz_mdio_write(uint8_t phyregaddr, uint16_t var) {
setPHYRAR(phyregaddr);