diff options
author | Graham Stott <grahams@rcp.co.uk> | 1998-06-07 19:59:23 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-06-07 19:59:23 -0600 |
commit | 79990a3950be4add7dfaff05549e9fe7ebf86195 (patch) | |
tree | 50470538880b5936f43c0824c7227f23f8bab879 /gcc/tree.c | |
parent | 49fa02d9d67616530d588d5d4f0ac37be10ff70d (diff) | |
download | gcc-79990a3950be4add7dfaff05549e9fe7ebf86195.zip gcc-79990a3950be4add7dfaff05549e9fe7ebf86195.tar.gz gcc-79990a3950be4add7dfaff05549e9fe7ebf86195.tar.bz2 |
tree.c (tree_class_check): Add braces to eliminate ambigious else warning.
* tree.c (tree_class_check): Add braces to eliminate ambigious
else warning.
(tree_check): Likewise.
From-SVN: r20325
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -4951,11 +4951,13 @@ tree_check (node, code, file, line, nofatal) int nofatal; { if (TREE_CODE (node) != code) - if (nofatal) - return 0; - else - fatal ("%s:%d: Expect %s, have %s\n", file, line, - tree_code_name[code], tree_code_name[TREE_CODE (node)]); + { + if (nofatal) + return 0; + else + fatal ("%s:%d: Expect %s, have %s\n", file, line, + tree_code_name[code], tree_code_name[TREE_CODE (node)]); + } return node; } @@ -4971,11 +4973,13 @@ tree_class_check (node, cl, file, line, nofatal) int nofatal; { if (TREE_CODE_CLASS (TREE_CODE (node)) != cl) - if (nofatal) - return 0; - else - fatal ("%s:%d: Expect '%c', have '%s'\n", file, line, - cl, tree_code_name[TREE_CODE (node)]); + { + if (nofatal) + return 0; + else + fatal ("%s:%d: Expect '%c', have '%s'\n", file, line, + cl, tree_code_name[TREE_CODE (node)]); + } return node; } |