In compizconfig/gsettings/src/gsettings.c:296] cppcheck throws a warning: Casting between double* and float* which have an incompatible binary data representation
Investigation shows that this is correct, but it could be by design:
First we find this:
Another question:
In compizconfig/ gsettings/ src/gsettings. c:296] cppcheck throws a warning: Casting between double* and float* which have an incompatible binary data representation
Investigation shows that this is correct, but it could be by design:
First we find this:
case TypeFloat:
{
double *array = malloc (nItems * sizeof (double));
then in line 296:
list = ccsGetValueList FromFloatArray ((float *) array, nItems, setting);
In compizconfig/ libcompizconfig /include/ ccs.h line 978 says:
CCSSettingValueList ccsGetValueList FromFloatArray (float *array,
int num,
CCSSetting *parent);
Q: Should we fix this and if so how ?