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,6 +1733,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, ...@@ -1733,6 +1733,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
return 0; return 0;
} }
{
int i = nxagentFindCurrentSelectionIndex(selection); int i = nxagentFindCurrentSelectionIndex(selection);
if (i < NumCurrentSelections && IS_INTERNAL_OWNER(i)) if (i < NumCurrentSelections && IS_INTERNAL_OWNER(i))
{ {
...@@ -1741,6 +1742,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, ...@@ -1741,6 +1742,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
*/ */
return 0; return 0;
} }
}
/* /*
* if lastClientWindowPtr is set we are waiting for an answer from * if lastClientWindowPtr is set we are waiting for an answer from
......
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