diff options
| author | hathach <[email protected]> | 2025-10-14 17:13:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-14 17:13:28 +0700 |
| commit | 47b13f6b102ea981b79588158dca436ebc21f1ae (patch) | |
| tree | e435b6af711f0386daec3eb53313cf4c2c240735 /lib | |
| parent | 9bf18d080b202e8e09bd76f32272b1dbfabfa3b9 (diff) | |
improve cmake warning flags, fix various warnings in examples
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/networking/dhserver.c | 4 | ||||
| -rw-r--r-- | lib/networking/rndis_reports.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/networking/dhserver.c b/lib/networking/dhserver.c index 9dedf87e2..87a63c5de 100644 --- a/lib/networking/dhserver.c +++ b/lib/networking/dhserver.c @@ -145,7 +145,7 @@ static __inline void free_entry(dhcp_entry_t *entry) memset(entry->mac, 0, 6); } -uint8_t *find_dhcp_option(uint8_t *attrs, int size, uint8_t attr) +static uint8_t *find_dhcp_option(uint8_t *attrs, int size, uint8_t attr) { int i = 0; while ((i + 1) < size) @@ -159,7 +159,7 @@ uint8_t *find_dhcp_option(uint8_t *attrs, int size, uint8_t attr) return NULL; } -int fill_options(void *dest, +static int fill_options(void *dest, uint8_t msg_type, const char *domain, ip4_addr_t dns, diff --git a/lib/networking/rndis_reports.c b/lib/networking/rndis_reports.c index 451d5405b..e2849fb10 100644 --- a/lib/networking/rndis_reports.c +++ b/lib/networking/rndis_reports.c @@ -29,7 +29,10 @@ #include <stdalign.h> #include <string.h> -#include "class/net/net_device.h" +#include "tusb.h" + +#if CFG_TUD_ECM_RNDIS + #include "rndis_protocol.h" #include "netif/ethernet.h" @@ -299,3 +302,5 @@ void rndis_class_set_handler(uint8_t *data, int size) break; } } + +#endif |
