diff options
Diffstat (limited to 'doc/src/snippets/sensors/creating.cpp')
| -rw-r--r-- | doc/src/snippets/sensors/creating.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/snippets/sensors/creating.cpp b/doc/src/snippets/sensors/creating.cpp index 696db3efc1..c5a107cae7 100644 --- a/doc/src/snippets/sensors/creating.cpp +++ b/doc/src/snippets/sensors/creating.cpp @@ -59,5 +59,8 @@ QAccelerometer *sensor = new QAccelerometer(this); // On the stack (deleted when the current scope ends) QOrientationSensor orient_sensor; //! [Creating a sensor] + + Q_UNUSED(sensor) + Q_UNUSED(orient_sensor); } |
