diff options
| author | Eli Zaretskii | 2001-01-02 13:53:32 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-01-02 13:53:32 +0000 |
| commit | 3a57e8668355d5a851dbd7a7ec2b2f55d0d30e7c (patch) | |
| tree | 08288a8f6660d1c9c15596b15f2edc871695723a | |
| parent | 571512dece5a8820b7168200eef4341159140563 (diff) | |
| download | emacs-3a57e8668355d5a851dbd7a7ec2b2f55d0d30e7c.tar.gz emacs-3a57e8668355d5a851dbd7a7ec2b2f55d0d30e7c.zip | |
(enter_namespace, main): Cast variables to shut up
compiler warnings.
(yyerror): Change parameter declarations to be of type long, so
that they can take pointers on 64-bit platforms.
| -rw-r--r-- | lib-src/ebrowse.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index b5a9f48946a..8ff4c3e7b49 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -528,7 +528,7 @@ int globals P_ ((int)); | |||
| 528 | void | 528 | void |
| 529 | yyerror (format, a1, a2, a3, a4, a5) | 529 | yyerror (format, a1, a2, a3, a4, a5) |
| 530 | char *format; | 530 | char *format; |
| 531 | int a1, a2, a3, a4, a5; | 531 | long a1, a2, a3, a4, a5; |
| 532 | { | 532 | { |
| 533 | fprintf (stderr, "%s:%d: ", filename, yyline); | 533 | fprintf (stderr, "%s:%d: ", filename, yyline); |
| 534 | fprintf (stderr, format, a1, a2, a3, a4, a5); | 534 | fprintf (stderr, format, a1, a2, a3, a4, a5); |
| @@ -1142,7 +1142,8 @@ enter_namespace (name) | |||
| 1142 | if (namespace_sp == namespace_stack_size) | 1142 | if (namespace_sp == namespace_stack_size) |
| 1143 | { | 1143 | { |
| 1144 | int size = max (10, 2 * namespace_stack_size); | 1144 | int size = max (10, 2 * namespace_stack_size); |
| 1145 | namespace_stack = (struct sym **) xrealloc (namespace_stack, size); | 1145 | namespace_stack = (struct sym **) xrealloc ((void *)namespace_stack, |
| 1146 | size); | ||
| 1146 | namespace_stack_size = size; | 1147 | namespace_stack_size = size; |
| 1147 | } | 1148 | } |
| 1148 | 1149 | ||
| @@ -3623,7 +3624,7 @@ main (argc, argv) | |||
| 3623 | if (n_input_files == input_filenames_size) | 3624 | if (n_input_files == input_filenames_size) |
| 3624 | { | 3625 | { |
| 3625 | input_filenames_size = max (10, 2 * input_filenames_size); | 3626 | input_filenames_size = max (10, 2 * input_filenames_size); |
| 3626 | input_filenames = (char **) xrealloc (input_filenames, | 3627 | input_filenames = (char **) xrealloc ((void *)input_filenames, |
| 3627 | input_filenames_size); | 3628 | input_filenames_size); |
| 3628 | } | 3629 | } |
| 3629 | input_filenames[n_input_files++] = xstrdup (optarg); | 3630 | input_filenames[n_input_files++] = xstrdup (optarg); |
| @@ -3695,7 +3696,7 @@ main (argc, argv) | |||
| 3695 | yyout = fopen (out_filename, f_append ? "a" : "w"); | 3696 | yyout = fopen (out_filename, f_append ? "a" : "w"); |
| 3696 | if (yyout == NULL) | 3697 | if (yyout == NULL) |
| 3697 | { | 3698 | { |
| 3698 | yyerror ("cannot open output file `%s'", out_filename); | 3699 | yyerror ("cannot open output file `%s'", (long)out_filename); |
| 3699 | exit (1); | 3700 | exit (1); |
| 3700 | } | 3701 | } |
| 3701 | } | 3702 | } |
| @@ -3723,7 +3724,7 @@ main (argc, argv) | |||
| 3723 | FILE *fp = fopen (input_filenames[i], "r"); | 3724 | FILE *fp = fopen (input_filenames[i], "r"); |
| 3724 | 3725 | ||
| 3725 | if (fp == NULL) | 3726 | if (fp == NULL) |
| 3726 | yyerror ("cannot open input file `%s'", input_filenames[i]); | 3727 | yyerror ("cannot open input file `%s'", (long)input_filenames[i]); |
| 3727 | else | 3728 | else |
| 3728 | { | 3729 | { |
| 3729 | char *file; | 3730 | char *file; |