summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2018-03-21 07:48:29 +0100
committerAlex Blasche <alexander.blasche@qt.io>2018-03-21 10:13:57 +0000
commit08ee3470fe71089503c57530396a4534f39afe9e (patch)
tree024522f2203030974f40fbf4ebcea41b0dc109e1 /src
parent279a6968a7550b59e41ff8ffa70a5ca705780d4b (diff)
Fix compiler warning
qlowenergycontroller.cpp:295:82: warning: unused parameter 'role' [-Wunused-parameter] static QLowEnergyControllerPrivate *privateController(QLowEnergyController::Role role) Change-Id: I4d3d2ad1e2dbabd0101efd6294a2481491587926 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qlowenergycontroller.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp
index caa6c3fa..a23955ff 100644
--- a/src/bluetooth/qlowenergycontroller.cpp
+++ b/src/bluetooth/qlowenergycontroller.cpp
@@ -306,10 +306,13 @@ static QLowEnergyControllerPrivate *privateController(QLowEnergyController::Role
return new QLowEnergyControllerPrivateBluez();
}
#elif defined(QT_ANDROID_BLUETOOTH)
+ Q_UNUSED(role);
return new QLowEnergyControllerPrivateAndroid();
#elif defined(QT_WINRT_BLUETOOTH)
+ Q_UNUSED(role);
return new QLowEnergyControllerPrivateWinRT();
#else
+ Q_UNUSED(role);
return new QLowEnergyControllerPrivateCommon();
#endif
}