Commit 9e23c1aa by Francois-Xavier Coudert Committed by François-Xavier Coudert

simplify.c (gfc_simplify_dble, [...]): Initialize result variable to avoid warnings.

	* simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
	result variable to avoid warnings.

From-SVN: r135528
parent 425d348e
2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
result variable to avoid warnings.
2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* intrinsic.c (char_conversions, ncharconv): New static variables. * intrinsic.c (char_conversions, ncharconv): New static variables.
......
...@@ -1094,7 +1094,7 @@ gfc_simplify_dcmplx (gfc_expr *x, gfc_expr *y) ...@@ -1094,7 +1094,7 @@ gfc_simplify_dcmplx (gfc_expr *x, gfc_expr *y)
gfc_expr * gfc_expr *
gfc_simplify_dble (gfc_expr *e) gfc_simplify_dble (gfc_expr *e)
{ {
gfc_expr *result; gfc_expr *result = NULL;
if (e->expr_type != EXPR_CONSTANT) if (e->expr_type != EXPR_CONSTANT)
return NULL; return NULL;
...@@ -3186,7 +3186,7 @@ gfc_simplify_range (gfc_expr *e) ...@@ -3186,7 +3186,7 @@ gfc_simplify_range (gfc_expr *e)
gfc_expr * gfc_expr *
gfc_simplify_real (gfc_expr *e, gfc_expr *k) gfc_simplify_real (gfc_expr *e, gfc_expr *k)
{ {
gfc_expr *result; gfc_expr *result = NULL;
int kind; int kind;
if (e->ts.type == BT_COMPLEX) if (e->ts.type == BT_COMPLEX)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment