gcc 4.3.2 examines getLowerUpperIndex() and concludes that it's not

guaranteed to initialize its two last arguments.  Therefore, there is a
warning in the subsequent caller ar5416FillVpdTable(), which doesn't
initialize those arguments.

Change getLowerUpperIndex() to assign values to indexL and indexR even
in the case of assertion failure.

Submitted by:	Pavel Roskin <proski@gnu.org>
This commit is contained in:
Sam Leffler 2009-02-11 22:15:37 +00:00
parent 42dc9c5abd
commit 71a3564e5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188499

View file

@ -2710,6 +2710,7 @@ getLowerUpperIndex(uint8_t target, uint8_t *pList, uint16_t listSize,
}
}
HALASSERT(0);
*indexL = *indexR = 0;
return AH_FALSE;
}