Commit 5bbdbfce authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/Clipboard.c: The result variable is only needed when combiled with -DDEBUG.

Amends the following compiler warning: ``` Clipboard.c: In function ‘nxagentRequestSelection’: Clipboard.c:272:7: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] int result; ^ ```
parent f3f0a6b4
...@@ -269,7 +269,9 @@ void nxagentClearSelection(XEvent *X) ...@@ -269,7 +269,9 @@ void nxagentClearSelection(XEvent *X)
void nxagentRequestSelection(XEvent *X) void nxagentRequestSelection(XEvent *X)
{ {
#ifdef DEBUG
int result; int result;
#endif
int i = 0; int i = 0;
XSelectionEvent eventSelection; XSelectionEvent eventSelection;
...@@ -311,7 +313,7 @@ FIXME: Do we need this? ...@@ -311,7 +313,7 @@ FIXME: Do we need this?
if (X->xselectionrequest.target == serverTARGETS) if (X->xselectionrequest.target == serverTARGETS)
{ {
Atom xa_STRING = XA_STRING; Atom xa_STRING = XA_STRING;
result = XChangeProperty (nxagentDisplay, XChangeProperty (nxagentDisplay,
X->xselectionrequest.requestor, X->xselectionrequest.requestor,
X->xselectionrequest.property, X->xselectionrequest.property,
XInternAtom(nxagentDisplay, "ATOM", 0), XInternAtom(nxagentDisplay, "ATOM", 0),
...@@ -329,7 +331,7 @@ FIXME: Do we need this? ...@@ -329,7 +331,7 @@ FIXME: Do we need this?
if (i < NumCurrentSelections) if (i < NumCurrentSelections)
{ {
result = XChangeProperty(nxagentDisplay, XChangeProperty(nxagentDisplay,
X->xselectionrequest.requestor, X->xselectionrequest.requestor,
X->xselectionrequest.property, X->xselectionrequest.property,
X->xselectionrequest.target, X->xselectionrequest.target,
...@@ -349,7 +351,10 @@ FIXME: Do we need this? ...@@ -349,7 +351,10 @@ FIXME: Do we need this?
eventSelection.target = X->xselectionrequest.target; eventSelection.target = X->xselectionrequest.target;
eventSelection.time = X->xselectionrequest.time; eventSelection.time = X->xselectionrequest.time;
result = XSendEvent(nxagentDisplay, #ifdef DEBUG
result =
#endif
XSendEvent(nxagentDisplay,
eventSelection.requestor, eventSelection.requestor,
False, False,
0L, 0L,
...@@ -463,7 +468,10 @@ FIXME: Do we need this? ...@@ -463,7 +468,10 @@ FIXME: Do we need this?
eventSelection.property = None; eventSelection.property = None;
eventSelection.time = X->xselectionrequest.time; eventSelection.time = X->xselectionrequest.time;
result = XSendEvent(nxagentDisplay, #ifdef DEBUG
result =
#endif
XSendEvent(nxagentDisplay,
eventSelection.requestor, eventSelection.requestor,
False, False,
0L, 0L,
......
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