From 934e992600497edec7ca89952d8d6579844a5164 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 5 Mar 2019 23:41:39 +0100 Subject: [PATCH] =?utf8?q?re=20PR=20libfortran/89593=20(warning=20"passing?= =?utf8?q?=20argument=203=20of=20=E2=80=98=5Fgfortran=5Fcaf=5F{get,send}?= =?utf8?q?=5Fby=5Fref=E2=80=99=20from=20incompatible=20pointer=20type"=20w?= =?utf8?q?hen=20building=20libgfortran)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR libgfortran/89593 * caf/single.c (_gfortran_caf_sendget_by_ref): Cast &temp to gfc_descriptor_t * to avoid warning. From-SVN: r269405 --- libgfortran/ChangeLog | 6 ++++++ libgfortran/caf/single.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 25db8c65b7d..6ce8b5f9fcf 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2019-03-05 Jakub Jelinek + + PR libgfortran/89593 + * caf/single.c (_gfortran_caf_sendget_by_ref): Cast &temp to + gfc_descriptor_t * to avoid warning. + 2019-02-26 Uroš Bizjak * io/transfer.c (transfer_array_inner): Do not diff --git a/libgfortran/caf/single.c b/libgfortran/caf/single.c index 1190f1abae3..2e634bc8d55 100644 --- a/libgfortran/caf/single.c +++ b/libgfortran/caf/single.c @@ -2810,14 +2810,16 @@ _gfortran_caf_sendget_by_ref (caf_token_t dst_token, int dst_image_index, GFC_DESCRIPTOR_RANK (&temp) = -1; GFC_DESCRIPTOR_TYPE (&temp) = dst_type; - _gfortran_caf_get_by_ref (src_token, src_image_index, &temp, src_refs, + _gfortran_caf_get_by_ref (src_token, src_image_index, + (gfc_descriptor_t *) &temp, src_refs, dst_kind, src_kind, may_require_tmp, true, src_stat, src_type); if (src_stat && *src_stat != 0) return; - _gfortran_caf_send_by_ref (dst_token, dst_image_index, &temp, dst_refs, + _gfortran_caf_send_by_ref (dst_token, dst_image_index, + (gfc_descriptor_t *) &temp, dst_refs, dst_kind, dst_kind, may_require_tmp, true, dst_stat, dst_type); if (GFC_DESCRIPTOR_DATA (&temp)) -- 2.30.2