summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Keller <Rainer.Keller@qt.io>2019-10-10 10:44:13 +0200
committerRainer Keller <Rainer.Keller@qt.io>2019-10-10 15:32:01 +0200
commit2415d698e82776804bb273fb9e999dcd610ac4ff (patch)
tree31ce5f20a82dda813aaf8e2c23be508c1de27897
parent0503801a778fa241aea2d33736eae32e1b2afc28 (diff)
Fix warning about unused variable
Change-Id: Ifd46da5cbf993cae7f66389a1222c5ddb1a604f7 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r--tests/open62541-testserver/testserver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/open62541-testserver/testserver.cpp b/tests/open62541-testserver/testserver.cpp
index 12efc01..23385cc 100644
--- a/tests/open62541-testserver/testserver.cpp
+++ b/tests/open62541-testserver/testserver.cpp
@@ -48,10 +48,12 @@
QT_BEGIN_NAMESPACE
+#if defined UA_ENABLE_ENCRYPTION
static const size_t usernamePasswordsSize = 2;
static UA_UsernamePasswordLogin usernamePasswords[2] = {
{UA_STRING_STATIC("user1"), UA_STRING_STATIC("password")},
{UA_STRING_STATIC("user2"), UA_STRING_STATIC("password1")}};
+#endif
const UA_UInt16 portNumber = 43344;