Changeset 34345
- Timestamp:
- Aug 23, 2012, 11:26:47 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/getcoords.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/getcoords.c
r34342 r34345 57 57 return (FALSE); 58 58 } 59 if ((mosbuffer = SelectBuffer (MOSAIC, OLDBUFFER, TRUE)) == NULL) goto escape; 59 if ((mosbuffer = SelectBuffer (MOSAIC, OLDBUFFER, TRUE)) == NULL) { 60 // Using goto_escape triggers a compiler bug with our build flags when using gcc 4.3.2 61 // It thinks MOSAIC may be uninitialzed even when it can't be. Just free 62 // goto escape; 63 free (MOSAIC); 64 return (FALSE); 65 } 60 66 GetCoords (&moscoords, &mosbuffer[0].header); 61 67 RegisterMosaic (&moscoords); … … 100 106 gprint (GP_ERR, "USAGE: getcoords [buffer] (crval1) (crval2) [-transform C/E/G C/E/G]\n"); 101 107 gprint (GP_ERR, "generate images of the two coordinate dimensions for the image WCS\n"); 102 escape: 103 if (MOSAIC != NULL) free (MOSAIC); 108 // escape: 109 // Jumping here and trying to free this here causes the compiler to fail on optimized build to fail See comments 110 // above. 111 // if (MOSAIC != NULL) free (MOSAIC); 104 112 return (FALSE); 105 113 }
Note:
See TracChangeset
for help on using the changeset viewer.
