Skip to content

Commit 8dc3f2a

Browse files
gshiromagmgunter
authored andcommitted
Quick update to silence compilation warnings from uninitialized variables in GeocodeCov (#823)
* silence compilation warnings of uninitialized variables * Update cxx/isce3/geocode/GeocodeCov.cpp Co-authored-by: Geoffrey M Gunter <[email protected]> Co-authored-by: Geoffrey M Gunter <[email protected]>
1 parent 0f03525 commit 8dc3f2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cxx/isce3/geocode/GeocodeCov.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,8 @@ void Geocode<T>::_getRadarPositionVect(double dem_pos_1, const int k_start,
19241924
az. and rg. positions
19251925
*/
19261926

1927-
double pixazm, start, dr, r0;
1927+
double pixazm = 0.0, start = 0.0, dr = 0.0, r0 = 0.0;
1928+
19281929
if (flag_compute_min_max) {
19291930
// start (az) and r0 at the outer edge of the first pixel
19301931
pixazm = radar_grid.azimuthTimeInterval();

0 commit comments

Comments
 (0)