1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Compilation fix - when INVARIANTS are turned off.

This commit is contained in:
Jayachandran C. 2010-09-10 07:06:06 +00:00
parent 7472161efa
commit bfd7cd0131
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212409
3 changed files with 10 additions and 2 deletions

View File

@ -1953,7 +1953,10 @@ send_fmn_msg_tx(struct nlge_softc *sc, struct msgrng_msg *msg,
uint32_t n_entries)
{
uint32_t msgrng_flags;
int i = 0, ret;
int ret;
#ifdef INVARIANTS
int i = 0;
#endif
do {
msgrng_flags = msgrng_access_enable();

View File

@ -713,8 +713,11 @@ xlr_mac_send_fr(struct driver_data *priv,
{
struct msgrng_msg msg;
int stid = priv->rfrbucket;
int i = 0, code, ret;
int code, ret;
uint32_t msgrng_flags;
#ifdef INVARIANTS
int i = 0;
#endif
mac_make_desc_rfr(&msg, addr);

View File

@ -306,7 +306,9 @@ message_send(unsigned int size, unsigned int code,
{
unsigned int dest = 0;
unsigned long long status = 0;
#ifdef INVARIANTS
int i = 0;
#endif
msgrng_load_tx_msg0(msg->msg0);
msgrng_load_tx_msg1(msg->msg1);