Closed aparcar closed 6 years ago
https://github.com/sargon/ddhcpd/blob/9fd32f274489fe6d3dd789e1afd5aa8c59f83a7f/dhcp_packet.c#L207
echo '#define REVISION "3cbb8be3435996fdb33ad7b63e3ad10481e5603a"' > version.h gcc -Wall -Wextra -pedantic -Werror -flto -fno-strict-aliasing -std=gnu11 -D_GNU_SOURCE -MD -MP -DNDEBUG -c -o dhcp_packet.o dhcp_packet.c dhcp_packet.c: In function ‘ntoh_dhcp_packet’: dhcp_packet.c:207:12: error: this statement may fall through [-Werror=implicit-fallthrough=] exit = 1; ~~~~~^~~ dhcp_packet.c:209:5: note: here case DHCP_CODE_PAD: ^~~~ cc1: all warnings being treated as errors make: *** [<builtin>: dhcp_packet.o] Error 1
https://github.com/sargon/ddhcpd/blob/9fd32f274489fe6d3dd789e1afd5aa8c59f83a7f/dhcp_packet.c#L207