diff --git a/Audio/ThirdParty/r8bstate.h b/Audio/ThirdParty/r8bstate.h index 2a3bba8d8..9744b255e 100644 --- a/Audio/ThirdParty/r8bstate.h +++ b/Audio/ThirdParty/r8bstate.h @@ -75,7 +75,7 @@ struct r8bstate { size_t blockCount = inCount; if(blockCount > bufferCapacity) blockCount = bufferCapacity; - int outputDone; + int outputDone = 0; for(i = 0; i < channelCount; ++i) { double *outputPointer; vDSP_vspdp(input + i, channelCount, &InBuf[0], 1, blockCount); diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index 83c22c7de..54f1a222a 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -385,8 +385,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc NSUInteger index = [cellIdentifiers indexOfObject:[tableColumn identifier]]; - NSSortDescriptor *sortDescriptor = [tableColumn sortDescriptorPrototype]; - NSArray *sortDescriptors = sortDescriptor ? @[sortDescriptor] : @[]; + NSSortDescriptor *sortDescriptor;/* = [tableColumn sortDescriptorPrototype];*/ + NSArray *sortDescriptors;/* = sortDescriptor ? @[sortDescriptor] : @[];*/ BOOL ascending; diff --git a/ThirdParty/json/json.c b/ThirdParty/json/json.c index 6012bad7d..fe63de9ca 100644 --- a/ThirdParty/json/json.c +++ b/ThirdParty/json/json.c @@ -650,7 +650,7 @@ json_value * json_parse_ex (json_settings * settings, { if ( (++ state.ptr) == end) { - b = 0; + /*b = 0;*/ break; } diff --git a/Utils/SQLiteStore.m b/Utils/SQLiteStore.m index b985dedd8..6a52ac8f3 100644 --- a/Utils/SQLiteStore.m +++ b/Utils/SQLiteStore.m @@ -577,7 +577,7 @@ static SQLiteStore *g_sharedStore = NULL; dbExists = YES; if(sqlite3_open([g_databasePath UTF8String], &g_database) == SQLITE_OK) { - char *error; + char *error = ""; if(!dbExists) { NSArray *schemas = createSchema(); @@ -799,7 +799,7 @@ static SQLiteStore *g_sharedStore = NULL; return string; } - int64_t returnId, refcount; + int64_t returnId; /*, refcount;*/ int rc = sqlite3_step(st); @@ -809,7 +809,7 @@ static SQLiteStore *g_sharedStore = NULL; if(rc == SQLITE_ROW) { returnId = sqlite3_column_int64(st, select_string_out_string_id); - refcount = sqlite3_column_int64(st, select_string_out_reference_count); + /*refcount = sqlite3_column_int64(st, select_string_out_reference_count);*/ } sqlite3_reset(st); @@ -825,7 +825,7 @@ static SQLiteStore *g_sharedStore = NULL; } returnId = sqlite3_last_insert_rowid(g_database); - refcount = 1; + /*refcount = 1;*/ [stringTable setObject:string forKey:[[NSNumber numberWithInteger:returnId] stringValue]]; } else { @@ -961,7 +961,7 @@ static SQLiteStore *g_sharedStore = NULL; return art; } - int64_t returnId, refcount; + int64_t returnId; /*, refcount;*/ int rc = sqlite3_step(st); @@ -971,7 +971,7 @@ static SQLiteStore *g_sharedStore = NULL; if(rc == SQLITE_ROW) { returnId = sqlite3_column_int64(st, select_art_out_art_id); - refcount = sqlite3_column_int64(st, select_art_out_reference_count); + /*refcount = sqlite3_column_int64(st, select_art_out_reference_count);*/ } sqlite3_reset(st); @@ -988,7 +988,7 @@ static SQLiteStore *g_sharedStore = NULL; } returnId = sqlite3_last_insert_rowid(g_database); - refcount = 1; + /*refcount = 1;*/ [artTable setObject:art forKey:[[NSNumber numberWithInteger:returnId] stringValue]]; } else { @@ -1103,7 +1103,7 @@ static SQLiteStore *g_sharedStore = NULL; NSString *urlString = [url absoluteString]; int64_t urlId = -1; - urlString = [self addString:urlString returnId:&urlId]; + [self addString:urlString returnId:&urlId]; sqlite3_stmt *st = stmt[stmt_select_track]; @@ -1113,7 +1113,7 @@ static SQLiteStore *g_sharedStore = NULL; return -1; } - int64_t ret, refcount; + int64_t ret/*, refcount*/; int rc = sqlite3_step(st); @@ -1124,7 +1124,7 @@ static SQLiteStore *g_sharedStore = NULL; if(rc == SQLITE_ROW) { ret = sqlite3_column_int64(st, select_track_out_track_id); - refcount = sqlite3_column_int64(st, select_track_out_reference_count); + /*refcount = sqlite3_column_int64(st, select_track_out_reference_count);*/ } sqlite3_reset(stmt[stmt_select_string]); @@ -1235,7 +1235,7 @@ static SQLiteStore *g_sharedStore = NULL; } ret = sqlite3_last_insert_rowid(g_database); - refcount = 1; + /*refcount = 1;*/ } else { [self removeString:urlId]; // should only be bumped once per instance of track @@ -1259,7 +1259,7 @@ static SQLiteStore *g_sharedStore = NULL; NSString *urlString = [url absoluteString]; int64_t urlId = -1; - urlString = [self addString:urlString returnId:&urlId]; + [self addString:urlString returnId:&urlId]; sqlite3_stmt *st = stmt[stmt_select_track]; @@ -1269,7 +1269,7 @@ static SQLiteStore *g_sharedStore = NULL; return; } - int64_t trackId, refcount; + int64_t trackId; /*, refcount; */ int rc = sqlite3_step(st); @@ -1282,7 +1282,7 @@ static SQLiteStore *g_sharedStore = NULL; if(rc == SQLITE_ROW) { trackId = sqlite3_column_int64(st, select_track_out_track_id); - refcount = sqlite3_column_int64(st, select_track_out_reference_count); + /*refcount = sqlite3_column_int64(st, select_track_out_reference_count);*/ } sqlite3_reset(stmt[stmt_select_string]); diff --git a/Visualization/ThirdParty/deadbeef/analyzer.c b/Visualization/ThirdParty/deadbeef/analyzer.c index 3e153a283..f98c0d5de 100644 --- a/Visualization/ThirdParty/deadbeef/analyzer.c +++ b/Visualization/ThirdParty/deadbeef/analyzer.c @@ -336,7 +336,7 @@ _generate_octave_note_bars(ddb_analyzer_t *analyzer) { } int minBand = -1; - int maxBand = -1; + /*int maxBand = -1;*/ ddb_analyzer_bar_t *prev_bar = NULL; for(int i = 0; i < OCTAVES * STEPS; i += analyzer->octave_bars_step) { @@ -350,7 +350,7 @@ _generate_octave_note_bars(ddb_analyzer_t *analyzer) { minBand = i; } - maxBand = i; + /*maxBand = i;*/ ddb_analyzer_bar_t *bar = analyzer->bars + analyzer->bar_count;