diff --git a/src/gmt_remote.c b/src/gmt_remote.c index 305da02ee34..70c34ac2d77 100644 --- a/src/gmt_remote.c +++ b/src/gmt_remote.c @@ -731,7 +731,7 @@ CURL * gmtremote_setup_curl (struct GMTAPI_CTRL *API, char *url, char *local_fil return NULL; } if (time_out) { /* Set a timeout limit */ - if (curl_easy_setopt (Curl, CURLOPT_TIMEOUT, time_out)) { + if (curl_easy_setopt (Curl, CURLOPT_TIMEOUT, (long)time_out)) { GMT_Report (API, GMT_MSG_ERROR, "Failed to set curl option to time out after %d seconds\n", time_out); return NULL; } diff --git a/src/grdview.c b/src/grdview.c index c04a7df4b3e..6aa25b177df 100644 --- a/src/grdview.c +++ b/src/grdview.c @@ -313,7 +313,7 @@ GMT_LOCAL void grdview_paint_gouraud_tile(struct GMT_CTRL *GMT, struct PSL_CTRL /* Get color for each of 4 vertices */ for (k = 0; k < 4; k++) { - int index = gmt_get_rgb_from_z(GMT, P, Z_vert[k], &rgb_vert[k*3]); + gmt_get_rgb_from_z(GMT, P, Z_vert[k], &rgb_vert[k*3]); if (k == 0) PH = gmt_get_C_hidden(P);