2011-05-27 Paul Eggert <eggert@cs.ucla.edu>
+ * xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings.
+ (x_handle_selection_request, frame_for_x_selection): Remove unused vars.
+ (x_clipboard_manager_save): Now static.
+ (Fx_clipboard_manager_save): Rename local to avoid shadowing.
+
* fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.
(crypto_hash_function): Now static.
Fix pointer signedness problems. Avoid unnecessary initializations.
/* Perform conversions. This can signal. */
for (j = 0; j < nselections; j++)
{
- struct selection_data *cs = converted_selections + j;
Lisp_Object subtarget = AREF (multprop, 2*j);
Atom subproperty = symbol_to_x_atom (dpyinfo,
AREF (multprop, 2*j+1));
static struct frame *
frame_for_x_selection (Lisp_Object object)
{
- Lisp_Object tail, frame;
+ Lisp_Object tail;
struct frame *f;
if (NILP (object))
UTF8_STRING property, as described by
http://www.freedesktop.org/wiki/ClipboardManager */
-void
+static void
x_clipboard_manager_save (struct x_display_info *dpyinfo,
Lisp_Object frame)
{
{
/* Loop through all X displays, saving owned clipboards. */
struct x_display_info *dpyinfo;
- Lisp_Object local_selection, frame;
+ Lisp_Object local_selection, local_frame;
for (dpyinfo = x_display_list; dpyinfo; dpyinfo = dpyinfo->next)
{
local_selection = LOCAL_SELECTION (QCLIPBOARD, dpyinfo);
dpyinfo->Xatom_CLIPBOARD_MANAGER))
continue;
- frame = XCAR (XCDR (XCDR (XCDR (local_selection))));
- if (FRAME_LIVE_P (XFRAME (frame)))
- x_clipboard_manager_save (dpyinfo, frame);
+ local_frame = XCAR (XCDR (XCDR (XCDR (local_selection))));
+ if (FRAME_LIVE_P (XFRAME (local_frame)))
+ x_clipboard_manager_save (dpyinfo, local_frame);
}
}