arduino-libraries / WiFi

WiFi Library for Arduino
http://arduino.cc/
110 stars 58 forks source link

`-Wimplicit-fallthrough=` compiler warning #72

Open zfields opened 1 month ago

zfields commented 1 month ago
~/Development/Arduino/hardware/test/mbed_opta/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_execute':
~/Development/Arduino/hardware/test/mbed_opta/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1817:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
               parser->upgrade = 1;
               ~~~~~~~~~~~~~~~~^~~
~/Development/Arduino/hardware/test/mbed_opta/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1819:13: note: here
             case 1:
             ^~~~
~/Development/Arduino/hardware/test/mbed_opta/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_parse_url':
~/Development/Arduino/hardware/test/mbed_opta/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2376:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         found_at = 1;
         ~~~~~~~~~^~~
~/Development/Arduino/hardware/test/mbed_opta/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2379:7: note: here
       case s_req_server:
       ^~~~
zfields commented 1 month ago

arduino-cli compile --verbose --warnings=all --build-property "build.extra_flags=-Wno-unused-variable -Wno-psabi -Wno-deprecated-copy -Wno-missing-field-initializers -Wno-vla -Wno-delete-non-virtual-dtor -Wno-sign-compare -Og -g" --fqbn arduino:mbed_opta:opta <dev folder>