[Nut-upsdev] gcc4 compiler warnings

Arjen de Korte nut+devel at de-korte.org
Fri Feb 10 15:07:54 UTC 2006


>> I believe the type (void *) should only be used for data whose value
>> is intended to be typecast (such as malloc()), or where the nature of
>> the data truly does not matter (such as memset()).
> I agree completely on this. Using void * just to get rid of
> compiler warnings is the wrong way to go, it'll bite you in the long
> run.

*SLAP!*

I stand corrected, that was definitly not one of my finest ideas today.
I'll convert my driver later today, to use unsigned char's.

Regards, Arjen





More information about the Nut-upsdev mailing list