mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
Move some build time checkings inside init.c for task #7142 "Sanity check user-configurable values".
This commit is contained in:
@@ -55,9 +55,6 @@ const s32_t snmp_version = 0;
|
||||
const char snmp_publiccommunity[7] = "public";
|
||||
|
||||
/* statically allocated buffers for SNMP_CONCURRENT_REQUESTS */
|
||||
#if (SNMP_CONCURRENT_REQUESTS == 0)
|
||||
#error "need at least one snmp_msg_pstat"
|
||||
#endif
|
||||
struct snmp_msg_pstat msg_input_list[SNMP_CONCURRENT_REQUESTS];
|
||||
/* UDP Protocol Control Block */
|
||||
struct udp_pcb *snmp1_pcb = NULL;
|
||||
|
||||
@@ -60,9 +60,6 @@ struct snmp_trap_dst
|
||||
/* set to 0 when disabled, >0 when enabled */
|
||||
u8_t enable;
|
||||
};
|
||||
#if (SNMP_TRAP_DESTINATIONS == 0)
|
||||
#error "need at least one trap destination"
|
||||
#endif
|
||||
struct snmp_trap_dst trap_dst[SNMP_TRAP_DESTINATIONS];
|
||||
|
||||
/** TRAP message structure */
|
||||
|
||||
Reference in New Issue
Block a user