aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorGraham Stott <grahams@rcp.co.uk>1998-06-07 19:59:23 -0600
committerJeff Law <law@gcc.gnu.org>1998-06-07 19:59:23 -0600
commit79990a3950be4add7dfaff05549e9fe7ebf86195 (patch)
tree50470538880b5936f43c0824c7227f23f8bab879 /gcc/tree.c
parent49fa02d9d67616530d588d5d4f0ac37be10ff70d (diff)
downloadgcc-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.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index de4e2f8..641eefe 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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;
}