Mark cleanup function as unused if compiled with QT_QML_NO_DEBUGGER
authorUlf Hermann <ulf.hermann@digia.com>
Wed, 5 Nov 2014 13:02:55 +0000 (14:02 +0100)
committerUlf Hermann <ulf.hermann@digia.com>
Wed, 5 Nov 2014 14:58:03 +0000 (15:58 +0100)
commit5280e866f76e38f2bf1c226ff896b4649194eec4
tree2cbdb33b02f99a40a155a2a152267cd597162758
parentebc342ea38b4a5d2e3b83a47f375fa1737acaf49
Mark cleanup function as unused if compiled with QT_QML_NO_DEBUGGER

The static cleanup function in qqmldebugserver.cpp is only used if the
debug server is actually created. If not we can mark it as unused to
avoid compile warnings. Enclosing it in #ifdef would be uglier.

Task-number: QTBUG-42394
Change-Id: Ieb7fa38ecb346e80ce815ced85eb3a168bad9d99
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/debugger/qqmldebugserver.cpp