1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 08:29:11 +00:00

Codechange: Initialise a few variables that -flto seems to think could possibly be uninitialised

This commit is contained in:
Charles Pigott
2019-03-25 22:45:32 +00:00
committed by PeterN
parent 03ca3190c9
commit e453572b6a
3 changed files with 4 additions and 3 deletions

View File

@@ -118,7 +118,8 @@ void SetDParamMaxValue(uint n, uint64 max_value, uint min_count, FontSize size)
*/
void SetDParamMaxDigits(uint n, uint count, FontSize size)
{
uint front, next;
uint front = 0;
uint next = 0;
GetBroadestDigit(&front, &next, size);
uint64 val = count > 1 ? front : next;
for (; count > 1; count--) {