[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r103755: src/*.c: Fix more warnings a
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r103755: src/*.c: Fix more warnings about unused parameters. |
Date: |
Sat, 26 Mar 2011 03:48:03 +0100 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 103755
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Sat 2011-03-26 03:48:03 +0100
message:
src/*.c: Fix more warnings about unused parameters.
* keymap.c (describe_vector): Remove parameters `indices' and
`char_table_depth', unused since revno:43563.1.32 (2002-03-01).
(describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
* w32.c (read_unc_volume): Use parameter `henum', instead of
global variable `wget_enum_handle'.
modified:
src/ChangeLog
src/keymap.c
src/w32.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-03-26 01:23:15 +0000
+++ b/src/ChangeLog 2011-03-26 02:48:03 +0000
@@ -1,5 +1,12 @@
2011-03-26 Juanma Barranquero <address@hidden>
+ * w32.c (read_unc_volume): Use parameter `henum', instead of
+ global variable `wget_enum_handle'.
+
+ * keymap.c (describe_vector): Remove parameters `indices' and
+ `char_table_depth', unused since revno:43563.1.32 (2002-03-01).
+ (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
+
* keyboard.h (timer_check, show_help_echo): Remove unused parameters.
* keyboard.c (timer_check): Remove parameter `do_it_now',
=== modified file 'src/keymap.c'
--- a/src/keymap.c 2011-03-14 15:53:19 +0000
+++ b/src/keymap.c 2011-03-26 02:48:03 +0000
@@ -81,8 +81,7 @@
int, Lisp_Object, Lisp_Object*, int, int);
static void describe_vector (Lisp_Object, Lisp_Object, Lisp_Object,
void (*) (Lisp_Object, Lisp_Object), int,
- Lisp_Object, Lisp_Object, int *,
- int, int, int);
+ Lisp_Object, Lisp_Object, int, int);
static void silly_event_symbol_error (Lisp_Object);
static Lisp_Object get_keyelt (Lisp_Object, int);
@@ -3353,7 +3352,7 @@
|| CHAR_TABLE_P (XCAR (tail)))
describe_vector (XCAR (tail),
prefix, Qnil, elt_describer, partial, shadow, map,
- (int *)0, 0, 1, mention_shadow);
+ 1, mention_shadow);
else if (CONSP (XCAR (tail)))
{
int this_shadowed = 0;
@@ -3506,7 +3505,7 @@
specbind (Qstandard_output, Fcurrent_buffer ());
CHECK_VECTOR_OR_CHAR_TABLE (vector);
describe_vector (vector, Qnil, describer, describe_vector_princ, 0,
- Qnil, Qnil, (int *)0, 0, 0, 0);
+ Qnil, Qnil, 0, 0);
return unbind_to (count, Qnil);
}
@@ -3539,9 +3538,6 @@
ARGS is simply passed as the second argument to ELT_DESCRIBER.
- INDICES and CHAR_TABLE_DEPTH are ignored. They will be removed in
- the near future.
-
KEYMAP_P is 1 if vector is known to be a keymap, so map ESC to M-.
ARGS is simply passed as the second argument to ELT_DESCRIBER. */
@@ -3550,8 +3546,7 @@
describe_vector (Lisp_Object vector, Lisp_Object prefix, Lisp_Object args,
void (*elt_describer) (Lisp_Object, Lisp_Object),
int partial, Lisp_Object shadow, Lisp_Object entire_map,
- int *indices, int char_table_depth, int keymap_p,
- int mention_shadow)
+ int keymap_p, int mention_shadow)
{
Lisp_Object definition;
Lisp_Object tem2;
=== modified file 'src/w32.c'
--- a/src/w32.c 2011-03-25 15:39:59 +0000
+++ b/src/w32.c 2011-03-26 02:48:03 +0000
@@ -2376,8 +2376,8 @@
if (wnet_enum_handle != INVALID_HANDLE_VALUE)
{
if (!read_unc_volume (wnet_enum_handle,
- dir_find_data.cFileName,
- MAX_PATH))
+ dir_find_data.cFileName,
+ MAX_PATH))
return NULL;
}
/* If we aren't dir_finding, do a find-first, otherwise do a find-next. */
@@ -2487,7 +2487,7 @@
count = 1;
buffer = alloca (bufsize);
- result = WNetEnumResource (wnet_enum_handle, &count, buffer, &bufsize);
+ result = WNetEnumResource (henum, &count, buffer, &bufsize);
if (result != NO_ERROR)
return NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r103755: src/*.c: Fix more warnings about unused parameters.,
Juanma Barranquero <=