Skip to content

Commit

Permalink
silenced a few compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfrantz committed Feb 22, 2024
1 parent 200e2bc commit a88cf2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/cross-level/warp-cl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int warp_geo_to_any(double srs_x, double srs_y,
double *dst_x, double *dst_y, char *dst_wkt){
OGRSpatialReference oSrcSRS, oDstSRS;
OGRCoordinateTransformation *poCT = NULL;
char *wkt = dst_wkt;
const char *wkt = dst_wkt;
double x, y;


Expand Down Expand Up @@ -90,7 +90,7 @@ int warp_any_to_geo(double srs_x, double srs_y,
double *dst_x, double *dst_y, char *src_wkt){
OGRSpatialReference oSrcSRS, oDstSRS;
OGRCoordinateTransformation *poCT = NULL;
char *wkt = src_wkt;
const char *wkt = src_wkt;
double x, y;


Expand Down Expand Up @@ -135,8 +135,8 @@ int warp_any_to_any(double srs_x, double srs_y,
char *src_wkt, char *dst_wkt){
OGRSpatialReference oSrcSRS, oDstSRS;
OGRCoordinateTransformation *poCT = NULL;
char *src_css = src_wkt;
char *dst_css = dst_wkt;
const char *src_css = src_wkt;
const char *dst_css = dst_wkt;
double x, y;


Expand Down
1 change: 1 addition & 0 deletions src/lower-level/aod-ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ float coef[3], coefbest[3];

if (!dobj[o].valid) continue;

memset(coefbest, 0, 3*sizeof(float));

/** estimate band-wise aod that matches best with each pair of target
+++ and library reflectance **/
Expand Down
3 changes: 2 additions & 1 deletion src/lower-level/modwvp-ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,8 @@ char ftpname[NPOW_10], locname[NPOW_10];
int nchar;
int c, try__, nvalid, curl;
bool aqua = false;
double *modavg, *mydavg, *modctr, *mydctr;
double *modavg = NULL, *mydavg = NULL;
double *modctr = NULL, *mydctr = NULL;


// test if AQUA was commissioned
Expand Down

0 comments on commit a88cf2f

Please sign in to comment.