Voodooprojects

Chameleon => DevTalk => Topic started by: Gringo Vermelho on October 28, 2010, 05:28:42 AM

Title: Compiler warning - Chameleon 2.0 RC5 r617, r618
Post by: Gringo Vermelho on October 28, 2010, 05:28:42 AM
When compiling Trunk:

acpi_patcher.c: In function 'generate_pss_ssdt':
acpi_patcher.c:498: warning: unused variable 'i'

But.. acpi_patcher.c was only updated in Azi's branch?

svn update
(...)
U    branches/azimutz/Chazi/i386/libsaio/acpi_patcher.c

Trunk only received updates to these:
U    trunk/i386/libsaio/console.c
U    trunk/i386/libsa/zalloc.c
Title: Re: Compiler warning - Chameleon 2.0 RC5 r617, r618
Post by: Blackosx on October 28, 2010, 10:51:21 AM
I've just tried it, and yes I see it too:
Code: [Select]
acpi_patcher.c: In function ‘generate_pss_ssdt’:
acpi_patcher.c:498: warning: unused variable ‘i’

The last change I can see to acpi_pacther.c in the trunk was commit 609 (http://forge.voodooprojects.org/p/chameleon/source/commit/609/). Could that be anything to do with it?
Title: Re: Compiler warning - Chameleon 2.0 RC5 r617, r618
Post by: cparm on October 28, 2010, 03:29:59 PM
hi, i think it was just a little mistake  from mozo,

in acpi_patcher.c go to line 498,
you will see => "uint8_t i;"
delete it,

re-compile the project,

et voila  :)
Title: Re: Compiler warning - Chameleon 2.0 RC5 r617, r618
Post by: Azimutz on October 28, 2010, 10:44:16 PM
Yep.. Mozo just didn't noticed the warning.. it's not a big deal. I'll give him a "call" :)
Title: Re: Compiler warning - Chameleon 2.0 RC5 r617, r618
Post by: Blackosx on October 29, 2010, 05:46:57 PM
Thanks for the confirmation cparm.
Hey Azi - Thanks :)