소스 검색

fix: Fix a warning related to an unused argument

In the weak loader_port_debug_print() function, the string argument was
not explicitly marked as unused and caused unnecessary warnings.

Closes https://github.com/espressif/esp-serial-flasher/issues/81
Djordje Nedic 2 년 전
부모
커밋
52891340fb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/protocol_common.c

+ 1 - 1
src/protocol_common.c

@@ -297,5 +297,5 @@ esp_loader_error_t loader_spi_parameters(uint32_t total_size)
 
 __attribute__ ((weak)) void loader_port_debug_print(const char *str)
 {
-
+    (void) str;
 }