@@ -526,16 +526,16 @@ -(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index
526526
527527 if ( [plot.identifier isEqual: @" Bar Plot 1" ] ) {
528528 static CPTMutableTextStyle *whiteText = nil ;
529- static dispatch_once_t whiteOnceToken;
529+ static dispatch_once_t whiteOnceToken = 0 ;
530530
531531 dispatch_once (&whiteOnceToken, ^{
532532 whiteText = [[CPTMutableTextStyle alloc ] init ];
533533 whiteText.color = [CPTColor whiteColor ];
534534 whiteText.fontSize = self.titleSize * CPTFloat (0.5 );
535535 });
536536
537- static CPTMutableTextStyle *redText = nil ;
538- static dispatch_once_t blackOnceToken;
537+ static CPTMutableTextStyle *redText = nil ;
538+ static dispatch_once_t blackOnceToken = 0 ;
539539
540540 dispatch_once (&blackOnceToken, ^{
541541 redText = [[CPTMutableTextStyle alloc ] init ];
@@ -565,8 +565,8 @@ -(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index
565565
566566-(CPTPlotSymbol *)symbolForScatterPlot : (CPTScatterPlot *)plot recordIndex : (NSUInteger )index
567567{
568- static CPTPlotSymbol *redDot = nil ;
569- static dispatch_once_t onceToken;
568+ static CPTPlotSymbol *redDot = nil ;
569+ static dispatch_once_t onceToken = 0 ;
570570
571571 CPTPlotSymbol *symbol = nil ; // Use the default symbol
572572
0 commit comments