From bc3959d1e0fbe0361dfd45a5b4ed6db7e32e7147 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 25 May 2018 13:45:13 +0200 Subject: [PATCH] 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 1f0079a274561ec30dae1a884e70236625c90f9d. --- libfprint/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libfprint/core.c b/libfprint/core.c index 56e3638..280fe65 100644 --- a/libfprint/core.c +++ b/libfprint/core.c @@ -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; 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)) return ddev; +#pragma GCC diagnostic pop + } return NULL; }