Commit c137c2a4 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Clipboard.c: fix shadowed variable

this was harmless but not nice nevertheless. Clipboard.c: In function ‘nxagentConvertSelection’: Clipboard.c:1850:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local] int i = nxagentFindCurrentSelectionIndex(selection); ^ Clipboard.c:1736:7: note: shadowed declaration is here int i = nxagentFindCurrentSelectionIndex(selection); ^
parent 4953c651
...@@ -1733,13 +1733,15 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, ...@@ -1733,13 +1733,15 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
return 0; return 0;
} }
int i = nxagentFindCurrentSelectionIndex(selection);
if (i < NumCurrentSelections && IS_INTERNAL_OWNER(i))
{ {
/* int i = nxagentFindCurrentSelectionIndex(selection);
* There is a client owner on the agent side, let normal dix stuff happen. if (i < NumCurrentSelections && IS_INTERNAL_OWNER(i))
*/ {
return 0; /*
* There is a client owner on the agent side, let normal dix stuff happen.
*/
return 0;
}
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment