Skip to content

Commit

Permalink
[iioadaptor] Flag unused parameter. MER#1749
Browse files Browse the repository at this point in the history
There are compilation time warnings about unused parameter in the
IioAdaptor::scanElementsEnable() method.

Assume that the device parameter is ignored on purpose and flag it
with Q_UNUSED() to hide the warning.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Feb 7, 2017
1 parent a870ed8 commit 49f2022
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adaptors/iioadaptor/iioadaptor.cpp
Expand Up @@ -327,6 +327,8 @@ int IioAdaptor::sysfsReadInt(QString filename)
// Return the number of channels
int IioAdaptor::scanElementsEnable(int device, int enable)
{
Q_UNUSED(device);

QString elementsPath = iioDevice.devicePath + "scan_elements";

QDir dir(elementsPath);
Expand Down

0 comments on commit 49f2022

Please sign in to comment.