aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/ServerChannel.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-04-27 13:54:56 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-04-27 13:54:56 +0200
commit416fc186b0c5d56e176cd2c2a263cf08a94f47f9 (patch)
treebcbcc29b01a86d2035e7397ded5b24b90c841645 /nxcomp/ServerChannel.cpp
parent12104a232a6de163f7e871be288ac933083c4226 (diff)
parenta436cba04834da945d4a2be5335d1d7e95c6bf08 (diff)
downloadnx-libs-416fc186b0c5d56e176cd2c2a263cf08a94f47f9.tar.gz
nx-libs-416fc186b0c5d56e176cd2c2a263cf08a94f47f9.tar.bz2
nx-libs-416fc186b0c5d56e176cd2c2a263cf08a94f47f9.zip
Merge branch 'fcarvajaldev-3.6.x-nxcomp-amend-compiler-warnings' into 3.6.x
Diffstat (limited to 'nxcomp/ServerChannel.cpp')
-rw-r--r--nxcomp/ServerChannel.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/nxcomp/ServerChannel.cpp b/nxcomp/ServerChannel.cpp
index e0bd2132f..ee39903a7 100644
--- a/nxcomp/ServerChannel.cpp
+++ b/nxcomp/ServerChannel.cpp
@@ -4374,6 +4374,24 @@ int ServerChannel::handleWrite(const unsigned char *message, unsigned int length
} // End of switch on opcode.
//
+ // TODO: at the moment the variable hit was being set
+ // but no used, so to avoid the corresponding warning
+ // it has been added this block with a logging command.
+ // This code will be probably optimized away when none
+ // of the defines is set, but if there is no additional
+ // use for the hit variable in the future, then maybe
+ // it could be removed completely.
+ //
+
+ if (hit)
+ {
+ #if defined(TEST) || defined(OPCODES)
+ *logofs << "handleWrite: Cached flag enabled in handled request.\n"
+ << logofs_flush;
+ #endif
+ }
+
+ //
// A packed image request can generate more than just
// a single X_PutImage. Write buffer is handled inside
// handleUnpack(). Cannot simply assume that the final