Skip to content

Commit 6923c76

Browse files
committed
Use non-GCC specific way to avoid unused warning
1 parent 0382096 commit 6923c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SHTSensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class SHTSensorDriver
166166
* Set the sensor accuracy.
167167
* Returns false if the sensor does not support changing the accuracy
168168
*/
169-
virtual bool setAccuracy(__attribute__((unused)) SHTSensor::SHTAccuracy newAccuracy) {
169+
virtual bool setAccuracy(SHTSensor::SHTAccuracy /* newAccuracy */) {
170170
return false;
171171
}
172172

0 commit comments

Comments
 (0)