mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 23:35:02 +00:00
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:
parent
42dc9c5abd
commit
71a3564e5f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188499
|
@ -2710,6 +2710,7 @@ getLowerUpperIndex(uint8_t target, uint8_t *pList, uint16_t listSize,
|
|||
}
|
||||
}
|
||||
HALASSERT(0);
|
||||
*indexL = *indexR = 0;
|
||||
return AH_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue