Issue734

Okay, got it. Did some testing of casting enums in another project, to play around with it. Seems that if you straight up cast a double to an enum, it doesn't seem to count as using it:
`` 
TestObject::TestEnum TestObject::getEnumFromDouble(double value)
{
     return TestEnum(value);
}
``
...will count as an unused variable, whereas:
`` 
TestObject::TestEnum TestObject::getEnumFromInt(int value)
{
     return TestEnum(value);
}
``
... does not. Solution therefore is to make the double casting line:
`` return TestEnum(int(value)); ``