Chameleon

Chameleon Commit Details

Date:2017-03-29 21:00:27 (2 years 3 months ago)
Author:ErmaC
Commit:2876
Parents: 2875
Message:Resolve -Waddress-of-packed-member in a way compatible with Xcode 8.2.1 or earlier (Zenith432)
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/smbios.c
M/trunk/i386/modules/Resolution/915resolution.c
M/trunk/i386/libsaio/smbios.c
M/branches/ErmaC/Enoch/i386/modules/Resolution/915resolution.c

File differences

trunk/i386/libsaio/smbios.c
925925
926926
927927
928
928
929929
930930
931931
......
974974
975975
976976
977
977
978978
979979
980980
p->header.length= sizeof(SMBOemProcessorType);
p->header.handle= handle++;
setSMBValue(structPtr, numOfSetters - 2 , (returnType *)&(p->ProcessorType));
setSMBValue(structPtr, numOfSetters - 2 , (returnType *)(void *)&(p->ProcessorType));
structPtr->new = (SMBStructHeader *)((uint8_t *)structPtr->new + sizeof(SMBOemProcessorType) + 2);
tableLength += sizeof(SMBOemProcessorType) + 2;
p->header.length= sizeof(SMBOemProcessorBusSpeed);
p->header.handle= handle++;
setSMBValue(structPtr, numOfSetters -1, (returnType *)&(p->ProcessorBusSpeed));
setSMBValue(structPtr, numOfSetters -1, (returnType *)(void *)&(p->ProcessorBusSpeed));
structPtr->new = (SMBStructHeader *)((uint8_t *)structPtr->new + sizeof(SMBOemProcessorBusSpeed) + 2);
tableLength += sizeof(SMBOemProcessorBusSpeed) + 2;
trunk/i386/modules/Resolution/915resolution.c
752752
753753
754754
755
756
757
758
755
756
757
758
759759
760760
761761
......
794794
795795
796796
797
798
799
800
797
798
799
800
801801
802802
803803
modeline->x1 = modeline->x2 = (uint16_t)(x-1);
modeline->y1 = modeline->y2 = (uint16_t)(y-1);
gtf_timings(x, y, freqs[j], &modeline->clock,
&modeline->hsyncstart, &modeline->hsyncend,
&modeline->hblank, &modeline->vsyncstart,
&modeline->vsyncend, &modeline->vblank);
gtf_timings(x, y, freqs[j], (void *)&modeline->clock,
(void *)&modeline->hsyncstart, (void *)&modeline->hsyncend,
(void *)&modeline->hblank, (void *)&modeline->vsyncstart,
(void *)&modeline->vsyncend, (void *)&modeline->vblank);
if (htotal)
{
modeline->x1 = modeline->x2 = (uint16_t)(x-1);
modeline->y1 = modeline->y2 = (uint16_t)(y-1);
gtf_timings(x, y, freqs[j], &modeline->clock,
&modeline->hsyncstart, &modeline->hsyncend,
&modeline->hblank, &modeline->vsyncstart,
&modeline->vsyncend, &modeline->vblank);
gtf_timings(x, y, freqs[j], (void *)&modeline->clock,
(void *)&modeline->hsyncstart, (void *)&modeline->hsyncend,
(void *)&modeline->hblank, (void *)&modeline->vsyncstart,
(void *)&modeline->vsyncend, (void *)&modeline->vblank);
if (htotal)
{
modeline->htotal = (uint16_t)htotal;
branches/ErmaC/Enoch/i386/libsaio/smbios.c
925925
926926
927927
928
928
929929
930930
931931
......
974974
975975
976976
977
977
978978
979979
980980
p->header.length= sizeof(SMBOemProcessorType);
p->header.handle= handle++;
setSMBValue(structPtr, numOfSetters - 2 , (returnType *)&(p->ProcessorType));
setSMBValue(structPtr, numOfSetters - 2 , (returnType *)(void *)&(p->ProcessorType));
structPtr->new = (SMBStructHeader *)((uint8_t *)structPtr->new + sizeof(SMBOemProcessorType) + 2);
tableLength += sizeof(SMBOemProcessorType) + 2;
p->header.length= sizeof(SMBOemProcessorBusSpeed);
p->header.handle= handle++;
setSMBValue(structPtr, numOfSetters -1, (returnType *)&(p->ProcessorBusSpeed));
setSMBValue(structPtr, numOfSetters -1, (returnType *)(void *)&(p->ProcessorBusSpeed));
structPtr->new = (SMBStructHeader *)((uint8_t *)structPtr->new + sizeof(SMBOemProcessorBusSpeed) + 2);
tableLength += sizeof(SMBOemProcessorBusSpeed) + 2;
branches/ErmaC/Enoch/i386/modules/Resolution/915resolution.c
752752
753753
754754
755
756
757
758
755
756
757
758
759759
760760
761761
......
794794
795795
796796
797
798
799
800
797
798
799
800
801801
802802
803803
modeline->x1 = modeline->x2 = (uint16_t)(x-1);
modeline->y1 = modeline->y2 = (uint16_t)(y-1);
gtf_timings(x, y, freqs[j], &modeline->clock,
&modeline->hsyncstart, &modeline->hsyncend,
&modeline->hblank, &modeline->vsyncstart,
&modeline->vsyncend, &modeline->vblank);
gtf_timings(x, y, freqs[j], (void *)&modeline->clock,
(void *)&modeline->hsyncstart, (void *)&modeline->hsyncend,
(void *)&modeline->hblank, (void *)&modeline->vsyncstart,
(void *)&modeline->vsyncend, (void *)&modeline->vblank);
if (htotal)
{
modeline->x1 = modeline->x2 = (uint16_t)(x-1);
modeline->y1 = modeline->y2 = (uint16_t)(y-1);
gtf_timings(x, y, freqs[j], &modeline->clock,
&modeline->hsyncstart, &modeline->hsyncend,
&modeline->hblank, &modeline->vsyncstart,
&modeline->vsyncend, &modeline->vblank);
gtf_timings(x, y, freqs[j], (void *)&modeline->clock,
(void *)&modeline->hsyncstart, (void *)&modeline->hsyncend,
(void *)&modeline->hblank, (void *)&modeline->vsyncstart,
(void *)&modeline->vsyncend, (void *)&modeline->vblank);
if (htotal)
{
modeline->htotal = (uint16_t)htotal;

Archive Download the corresponding diff file

Revision: 2876