[sound-juicer] Silence -Wsometimes-uninitialized



commit 23e248a5dd76b2e16318648b0086555ab86d1ab5
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Fri Jan 27 11:17:16 2017 +0000

    Silence -Wsometimes-uninitialized
    
    track_offset is not actually used uninitialized but clang cannot deduce
    that so gives a false warning.

 libjuicer/sj-metadata-musicbrainz5.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libjuicer/sj-metadata-musicbrainz5.c b/libjuicer/sj-metadata-musicbrainz5.c
index 253282e..9432b85 100644
--- a/libjuicer/sj-metadata-musicbrainz5.c
+++ b/libjuicer/sj-metadata-musicbrainz5.c
@@ -896,7 +896,7 @@ fill_tracks_from_medium (SjMetadataMusicbrainz5  *self,
     Mb5Recording recording;
     TrackDetails *track;
     gchar *title;
-    gint track_offset;
+    gint track_offset = 0;
 
     mbt = mb5_track_list_item (track_list, i);
     if (!mbt)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]