Move some build time checkings inside init.c for task #7142 "Sanity check user-configurable values".

This commit is contained in:
fbernon
2007-09-05 13:19:25 +00:00
parent 5865a78c1e
commit c1f89c5640
6 changed files with 16 additions and 14 deletions

View File

@@ -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;

View File

@@ -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 */