[beast: 24/31] BSE: bsecontainer.cc bsemidifile.cc: silence compiler
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 24/31] BSE: bsecontainer.cc bsemidifile.cc: silence compiler
- Date: Mon, 22 Jun 2015 14:40:11 +0000 (UTC)
commit b92dfdf4a134add7dd95823027a582bb4257472e
Author: Tim Janik <timj gnu org>
Date: Fri Jun 12 19:20:09 2015 +0200
BSE: bsecontainer.cc bsemidifile.cc: silence compiler
bse/bsecontainer.cc | 13 ++++---------
bse/bsemidifile.cc | 2 +-
2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/bse/bsecontainer.cc b/bse/bsecontainer.cc
index c5a3c50..ed60036 100644
--- a/bse/bsecontainer.cc
+++ b/bse/bsecontainer.cc
@@ -91,16 +91,11 @@ BSE_BUILTIN_TYPE (BseContainer)
static void
bse_container_class_init (BseContainerClass *klass)
{
- GObjectClass *gobject_class;
- BseObjectClass *object_class;
- BseItemClass *item_class;
- BseSourceClass *source_class;
-
parent_class = (GTypeClass*) g_type_class_peek_parent (klass);
- gobject_class = G_OBJECT_CLASS (klass);
- object_class = BSE_OBJECT_CLASS (klass);
- item_class = BSE_ITEM_CLASS (klass);
- source_class = BSE_SOURCE_CLASS (klass);
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ BseObjectClass *object_class = BSE_OBJECT_CLASS (klass);
+ // BseItemClass *item_class = BSE_ITEM_CLASS (klass);
+ BseSourceClass *source_class = BSE_SOURCE_CLASS (klass);
quark_cross_links = g_quark_from_static_string ("BseContainerCrossLinks");
diff --git a/bse/bsemidifile.cc b/bse/bsemidifile.cc
index 94175a8..04ea232 100644
--- a/bse/bsemidifile.cc
+++ b/bse/bsemidifile.cc
@@ -198,7 +198,7 @@ bse_midi_file_load (const char *file_name,
}
}
/* extract time signature events from beginning of master track */
- for (i = 0; i < MIN (16, smf->tracks[0].n_events); i++)
+ for (i = 0; i < int (MIN (16, smf->tracks[0].n_events)); i++)
{
BseMidiEvent *event = smf->tracks[0].events[i];
if (event->status == BSE_MIDI_SET_TEMPO)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]