Sadly the custom_operations struct of the OCaml C API uses char* for the
'identifier' member, even though it does not change it.
To avoid getting warnings when building with stricter CFLAGS, apply ugly
casts.
static void vol_finalize (value);
static struct custom_operations conn_custom_operations = {
static void vol_finalize (value);
static struct custom_operations conn_custom_operations = {
- "conn_custom_operations",
+ (char *) "conn_custom_operations",
conn_finalize,
custom_compare_default,
custom_hash_default,
conn_finalize,
custom_compare_default,
custom_hash_default,
};
static struct custom_operations dom_custom_operations = {
};
static struct custom_operations dom_custom_operations = {
- "dom_custom_operations",
+ (char *) "dom_custom_operations",
dom_finalize,
custom_compare_default,
custom_hash_default,
dom_finalize,
custom_compare_default,
custom_hash_default,
};
static struct custom_operations net_custom_operations = {
};
static struct custom_operations net_custom_operations = {
- "net_custom_operations",
+ (char *) "net_custom_operations",
net_finalize,
custom_compare_default,
custom_hash_default,
net_finalize,
custom_compare_default,
custom_hash_default,
};
static struct custom_operations pol_custom_operations = {
};
static struct custom_operations pol_custom_operations = {
- "pol_custom_operations",
+ (char *) "pol_custom_operations",
pol_finalize,
custom_compare_default,
custom_hash_default,
pol_finalize,
custom_compare_default,
custom_hash_default,
};
static struct custom_operations vol_custom_operations = {
};
static struct custom_operations vol_custom_operations = {
- "vol_custom_operations",
+ (char *) "vol_custom_operations",
vol_finalize,
custom_compare_default,
custom_hash_default,
vol_finalize,
custom_compare_default,
custom_hash_default,