[gnome-flashback] clipboard: fix -Wshadow warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] clipboard: fix -Wshadow warning
- Date: Thu, 10 Oct 2019 14:11:31 +0000 (UTC)
commit ad6757b471d4cb53bfb4461f68e92fdfba21dcff
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Oct 10 17:09:55 2019 +0300
clipboard: fix -Wshadow warning
gnome-flashback/libclipboard/gsd-clipboard-manager.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnome-flashback/libclipboard/gsd-clipboard-manager.c
b/gnome-flashback/libclipboard/gsd-clipboard-manager.c
index ce4c4cf..5f9aa27 100644
--- a/gnome-flashback/libclipboard/gsd-clipboard-manager.c
+++ b/gnome-flashback/libclipboard/gsd-clipboard-manager.c
@@ -491,18 +491,18 @@ convert_clipboard_manager (GsdClipboardManager *manager,
finish_selection_request (manager, xev, True);
} else if (xev->xselectionrequest.target == XA_TARGETS) {
- int n_targets = 0;
- Atom targets[3];
+ int n_new_targets = 0;
+ Atom new_targets[3];
- targets[n_targets++] = XA_TARGETS;
- targets[n_targets++] = XA_TIMESTAMP;
- targets[n_targets++] = XA_SAVE_TARGETS;
+ new_targets[n_new_targets++] = XA_TARGETS;
+ new_targets[n_new_targets++] = XA_TIMESTAMP;
+ new_targets[n_new_targets++] = XA_SAVE_TARGETS;
XChangeProperty (manager->display,
xev->xselectionrequest.requestor,
xev->xselectionrequest.property,
XA_ATOM, 32, PropModeReplace,
- (unsigned char *) targets, n_targets);
+ (unsigned char *) new_targets, n_new_targets);
finish_selection_request (manager, xev, True);
} else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]