lib: Fix internal deprecation warning
Remove deprecation warning that comes from an internal function, it
serves no purpose, and the function itself is deprecated.
Follow-up from commit 1f0079a274
.
This commit is contained in:
parent
1ac815e457
commit
bc3959d1e0
1 changed files with 5 additions and 1 deletions
|
@ -456,9 +456,13 @@ API_EXPORTED struct fp_dscv_dev *fp_dscv_dev_for_dscv_print(struct fp_dscv_dev *
|
||||||
struct fp_dscv_dev *ddev;
|
struct fp_dscv_dev *ddev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; (ddev = devs[i]); i++)
|
for (i = 0; (ddev = devs[i]); i++) {
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
if (fp_dscv_dev_supports_dscv_print(ddev, print))
|
if (fp_dscv_dev_supports_dscv_print(ddev, print))
|
||||||
return ddev;
|
return ddev;
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue