Browse Source

Fix LV2 headers for strict build flags

tags/1.9.4
falkTX 11 years ago
parent
commit
f80b48bdce
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      source/includes/lv2/atom-forge.h

+ 7
- 7
source/includes/lv2/atom-forge.h View File

@@ -231,7 +231,7 @@ lv2_atom_forge_is_blank(const LV2_Atom_Forge* forge,
#endif
return (type == forge->Blank ||
(type == forge->Object &&
((LV2_Atom_Object_Body*)body)->id == 0));
((const LV2_Atom_Object_Body*)body)->id == 0));
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
# pragma GCC diagnostic pop
#endif
@@ -583,7 +583,7 @@ lv2_atom_forge_object(LV2_Atom_Forge* forge,
LV2_URID otype)
{
const LV2_Atom_Object a = {
{ sizeof(LV2_Atom_Object) - sizeof(LV2_Atom), forge->Object },
{ (uint32_t)(sizeof(LV2_Atom_Object) - sizeof(LV2_Atom)), forge->Object },
{ id, otype }
};
return lv2_atom_forge_push(
@@ -608,7 +608,7 @@ lv2_atom_forge_resource(LV2_Atom_Forge* forge,
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
const LV2_Atom_Object a = {
{ sizeof(LV2_Atom_Object) - sizeof(LV2_Atom), forge->Resource },
{ (uint32_t)(sizeof(LV2_Atom_Object) - sizeof(LV2_Atom)), forge->Resource },
{ id, otype }
};
return lv2_atom_forge_push(
@@ -636,7 +636,7 @@ lv2_atom_forge_blank(LV2_Atom_Forge* forge,
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
const LV2_Atom_Object a = {
{ sizeof(LV2_Atom_Object) - sizeof(LV2_Atom), forge->Blank },
{ (uint32_t)(sizeof(LV2_Atom_Object) - sizeof(LV2_Atom)), forge->Blank },
{ id, otype }
};
return lv2_atom_forge_push(
@@ -656,7 +656,7 @@ lv2_atom_forge_key(LV2_Atom_Forge* forge,
LV2_URID key)
{
const LV2_Atom_Property_Body a = { key, 0, { 0, 0 } };
return lv2_atom_forge_write(forge, &a, 2 * sizeof(uint32_t));
return lv2_atom_forge_write(forge, &a, 2 * (uint32_t)sizeof(uint32_t));
}

/**
@@ -671,7 +671,7 @@ lv2_atom_forge_property_head(LV2_Atom_Forge* forge,
LV2_URID context)
{
const LV2_Atom_Property_Body a = { key, context, { 0, 0 } };
return lv2_atom_forge_write(forge, &a, 2 * sizeof(uint32_t));
return lv2_atom_forge_write(forge, &a, 2 * (uint32_t)sizeof(uint32_t));
}

/**
@@ -683,7 +683,7 @@ lv2_atom_forge_sequence_head(LV2_Atom_Forge* forge,
uint32_t unit)
{
const LV2_Atom_Sequence a = {
{ sizeof(LV2_Atom_Sequence) - sizeof(LV2_Atom), forge->Sequence },
{ (uint32_t)(sizeof(LV2_Atom_Sequence) - sizeof(LV2_Atom)), forge->Sequence },
{ unit, 0 }
};
return lv2_atom_forge_push(


Loading…
Cancel
Save