Remove inline vars

This commit is contained in:
Alexander Kovalenko 2018-05-27 01:49:23 +03:00
parent a0da75480c
commit c0f06e33e2
2 changed files with 7 additions and 3 deletions

View file

@ -16,7 +16,8 @@ static void TimerPollKernelTimers()
{
//EnterCritical();
for (unsigned hTimer = 0; hTimer < KERNEL_TIMERS; hTimer++)
unsigned hTimer;
for (hTimer = 0; hTimer < KERNEL_TIMERS; hTimer++)
{
volatile TKernelTimer* pTimer = &m_KernelTimer[hTimer];
@ -71,7 +72,8 @@ void TimerSystemInitialize()
DataMemBarrier();
for (unsigned hTimer = 0; hTimer < KERNEL_TIMERS; hTimer++)
unsigned hTimer;
for (hTimer = 0; hTimer < KERNEL_TIMERS; hTimer++)
{
m_KernelTimer[hTimer].m_pHandler = 0;
}

View file

@ -39,6 +39,8 @@ void RPI_PropertyAddTag( rpi_mailbox_tag_t tag, ... )
{
int* ptr;
int value;
int index;
va_list vl;
va_start( vl, tag );
@ -197,7 +199,7 @@ void RPI_PropertyAddTag( rpi_mailbox_tag_t tag, ... )
ptr++;
pt[pt_index++] = value;
{
for (int index = 0; index < value; ++index)
for (index = 0; index < value; ++index)
{
pt[pt_index++] = *ptr++;
}