summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-12 21:28:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-12 21:28:37 +0000
commit6ac218a85e195081460558b8977bf58046dd984a (patch)
treeff2eafd29645b58f0da63e6921f46b6e1a537148 /ucb
parentba0be0f08a413da5fc1315a73c01978c43972ec8 (diff)
cppcheck: some variables unused depending on ifdefs
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/NeonSession.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx
index eb87fc9c41ac..7943d8a3d540 100644
--- a/ucb/source/ucp/webdav/NeonSession.cxx
+++ b/ucb/source/ucp/webdav/NeonSession.cxx
@@ -1922,8 +1922,6 @@ int NeonSession::GET( ne_session * sess,
//struct get_context ctx;
ne_request * req = ne_request_create( sess, "GET", uri );
int ret;
- void *cursor = NULL;
- const char *name, *value;
#if NEON_VERSION < 0x0250
if ( getheaders )
@@ -1941,6 +1939,8 @@ int NeonSession::GET( ne_session * sess,
#if NEON_VERSION >= 0x0250
if ( getheaders )
{
+ void *cursor = NULL;
+ const char *name, *value;
while ( ( cursor = ne_response_header_iterate(
req, cursor, &name, &value ) ) != NULL )
{