From f39f28830ab6c93ca523871c88aa15a8bb84d984 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 6 Feb 2018 14:12:41 +0100 Subject: [PATCH] pam: Avoid errors when using parts of the copy/paste header If not all the functions in the header are used, we'd get warnings about them being unused. Mark all the functions as unused, so we can avoid warnings. --- pam/fingerprint-strings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pam/fingerprint-strings.h b/pam/fingerprint-strings.h index 6173298..f9fd993 100644 --- a/pam/fingerprint-strings.h +++ b/pam/fingerprint-strings.h @@ -88,7 +88,7 @@ struct { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-nonliteral" -static char *finger_str_to_msg(const char *finger_name, const char *driver_name, gboolean is_swipe) +G_GNUC_UNUSED static char *finger_str_to_msg(const char *finger_name, const char *driver_name, gboolean is_swipe) { int i; @@ -121,7 +121,7 @@ static char *finger_str_to_msg(const char *finger_name, const char *driver_name, * verify-match * verify-unknown-error */ -static const char *verify_result_str_to_msg(const char *result, gboolean is_swipe) +G_GNUC_UNUSED static const char *verify_result_str_to_msg(const char *result, gboolean is_swipe) { if (result == NULL) return NULL; @@ -147,7 +147,7 @@ static const char *verify_result_str_to_msg(const char *result, gboolean is_swip * enroll-failed * enroll-unknown-error */ -static const char *enroll_result_str_to_msg(const char *result, gboolean is_swipe) +G_GNUC_UNUSED static const char *enroll_result_str_to_msg(const char *result, gboolean is_swipe) { if (result == NULL) return NULL;