diff options
author | Fred Fish <fnf@specifix.com> | 1997-06-13 14:51:32 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1997-06-13 14:51:32 +0000 |
commit | 56e327b302eee034d0b5c069163023e4cd81b0b7 (patch) | |
tree | 590bf7971768931f17ba5d883ee96b243ae742be /gdb/c-exp.y | |
parent | adc03ece6288d971ea4eaab90d00abef5ef49cb7 (diff) | |
download | gdb-56e327b302eee034d0b5c069163023e4cd81b0b7.zip gdb-56e327b302eee034d0b5c069163023e4cd81b0b7.tar.gz gdb-56e327b302eee034d0b5c069163023e4cd81b0b7.tar.bz2 |
* defs.h (perror_with_name): Is a NORETURN function.
* utils.c (perror_with_name): Is a NORETURN function.
(error): Is NORETURN independently of ANSI_PROTOTYPES.
* symtab.c (fixup_symbol_section): Remove prototype.
* symtab.h: (fixup_symbol_section): Add prototype.
* m32r-rom.c (report_transfer_performance): Add prototype.
* sparclet-rom.c: Ditto.
* dsrec.c: Ditto.
* c-exp.y (parse_number): Cast args to float* or double* as
appropriate for conversion format.
* java-exp.y (parse_number): Ditto.
* Makefile.in (c-exp.tab.c): Remove #line lines that refer
to nonexistant y.tab.c file.
(java-exp.tab.c): Ditto.
(f-exp.tab.c): Ditto.
(m2-exp.tab.c): Ditto.
start-sanitize-gdbtk
* gdbtk.c (gdbtk_init): Make truth value test explicit.
Remove unused static variable "Gdbtk_Library".
end-sanitize-gdbtk
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index a3bbad2..4753973 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -940,9 +940,9 @@ parse_number (p, len, parsed_float, putithere) p[len] = 0; /* null-terminate the token */ if (sizeof (putithere->typed_val_float.dval) <= sizeof (float)) - num = sscanf (p, "%g%c", &putithere->typed_val_float.dval,&c); + num = sscanf (p, "%g%c", (float *) &putithere->typed_val_float.dval,&c); else if (sizeof (putithere->typed_val_float.dval) <= sizeof (double)) - num = sscanf (p, "%lg%c", &putithere->typed_val_float.dval,&c); + num = sscanf (p, "%lg%c", (double *) &putithere->typed_val_float.dval,&c); else { #ifdef PRINTF_HAS_LONG_DOUBLE |