[Interest] old style cast

Damian Ivanov damianatorrpm at gmail.com
Tue Aug 20 11:51:04 CEST 2019


Hello,

What is the correct way to do the following so it doesn't warn about
the use of old stylecast?
//G_VARIANT_TYPE_BYTESTRING = is defined in gvarianttype.h
// #define G_VARIANT_TYPE_BYTESTRING           ((const GVariantType *) "ay")
// value is of type GVariant *value

if (g_variant_is_of_type(value, G_VARIANT_TYPE_BYTESTRING)) // warn:
use of old style cast

Thank you for suggestions.

Regards,
Damian



More information about the Interest mailing list