Search code examples
iphoneioswarningscoordinatesgnu

warning: Parse Issue: Use of GNU old-style field designator extension


I tried the following code:

CLLocationCoordinate2D coord = {latitude: 61.2180556, longitude: -149.9002778};

and the compiler was showing the following warning

warning: Parse Issue: Use of GNU old-style field designator extension

Can somebody help me to understand what the complier is trying to say?


Solution

  • CLLocationCoordinate2D coord = {.latitude =  61.2180556, .longitude = -149.9002778};