- fixed warnings
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 27 Dec 2008 00:38:45 +0000 (00:38 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 27 Dec 2008 00:38:45 +0000 (00:38 +0000)
[r24903]

ast.c
ast2firm.c

diff --git a/ast.c b/ast.c
index 7fd934b..f8e1c2d 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1765,9 +1765,10 @@ static bool is_builtin_const_call(const expression_t *expression)
        case bk_gnu_builtin_nanf:
        case bk_gnu_builtin_nanl:
                return true;
+       default:
+               return false;
        }
 
-       return false;
 }
 
 static bool is_constant_pointer(const expression_t *expression)
index 8ab912f..75c8e91 100644 (file)
@@ -1712,7 +1712,6 @@ static ir_node *process_builtin_call(const call_expression_t *call)
                return NULL;
        }
        case bk_ms_ReturnAddress: {
-               expression_t *const expression = call->arguments->expression;
                ir_node *in[2];
 
                in[0] = new_Const_long(mode_int, 0);