This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Committed,fortran] Remove unneeded initialization
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 2 Dec 2016 23:24:51 -0800
- Subject: [Committed,fortran] Remove unneeded initialization
- Authentication-results: sourceware.org; auth=none
I've committed the following patch. It removes an unneeded
initialization. A pointer is set to NULL, and then in the
next line of code the pointer is set a memory address.
2016-12-02 Steven G. Kargl <kargl@gcc.gnu.org>
* expr.c (gfc_build_conversion): Remove unneeded initialization.
Index: expr.c
===================================================================
--- expr.c (revision 243208)
+++ expr.c (working copy)
@@ -795,8 +795,6 @@ gfc_build_conversion (gfc_expr *e)
p = gfc_get_expr ();
p->expr_type = EXPR_FUNCTION;
p->symtree = NULL;
- p->value.function.actual = NULL;
-
p->value.function.actual = gfc_get_actual_arglist ();
p->value.function.actual->expr = e;
--
Steve