+2002-12-30 Adam Fedor <fedor@gnu.org>
+
+ * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
+ (yylex): Initialize c to avoid uninitialized warning.
+
2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
* doc/fdl.texi: Revert the last change.
/* 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
return tokentab2[i].token;
}
+ c = 0;
switch (tokchr = *tokstart)
{
case 0: