fix typo, add -Wno-error=unreachable-code for fuzz due to latest cdc changes

This commit is contained in:
hathach
2022-12-08 10:30:22 +07:00
parent 6492f4a18d
commit 19400c8556
3 changed files with 4 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ void net_task(FuzzedDataProvider *provider) {
case kNetworkCanXmit:
(void)tud_network_can_xmit(provider->ConsumeIntegral<uint16_t>());
case kNetworkXmit:
// TODO: Actuall pass real values here later.
// TODO: Actually pass real values here later.
tud_network_xmit(NULL, 0);
case kMaxValue:
@@ -96,4 +96,4 @@ void net_task(FuzzedDataProvider *provider) {
break;
}
}
}
}

View File

@@ -72,6 +72,7 @@ CFLAGS += \
-O1
CFLAGS += \
-Wno-error=unreachable-code \
-DOPT_MCU_FUZZ=1 \
-DCFG_TUSB_MCU=OPT_MCU_FUZZ