summaryrefslogtreecommitdiff
path: root/gdb/objc-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/objc-exp.y')
-rw-r--r--gdb/objc-exp.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y
index d9e75a35cb5..5b70b654c70 100644
--- a/gdb/objc-exp.y
+++ b/gdb/objc-exp.y
@@ -846,7 +846,7 @@ array_mod: '[' ']'
func_mod: '(' ')'
{ $$ = 0; }
| '(' nonempty_typelist ')'
- { free ((PTR)$2); $$ = 0; }
+ { free ($2); $$ = 0; }
;
/* We used to try to recognize more pointer to member types here, but
@@ -1026,9 +1026,9 @@ parse_number (p, len, parsed_float, putithere)
/* It's a float since it contains a point or an exponent. */
if (sizeof (putithere->typed_val_float.dval) <= sizeof (float))
- sscanf (p, "%g", &putithere->typed_val_float.dval);
+ sscanf (p, "%g", (float *)&putithere->typed_val_float.dval);
else if (sizeof (putithere->typed_val_float.dval) <= sizeof (double))
- sscanf (p, "%lg", &putithere->typed_val_float.dval);
+ sscanf (p, "%lg", (double *)&putithere->typed_val_float.dval);
else
{
#ifdef PRINTF_HAS_LONG_DOUBLE
@@ -1281,6 +1281,7 @@ yylex ()
return tokentab2[i].token;
}
+ c = 0;
switch (tokchr = *tokstart)
{
case 0: