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.
This commit is contained in:
Bastien Nocera
2018-02-06 14:12:41 +01:00
parent e6d291b248
commit f39f28830a

View File

@ -88,7 +88,7 @@ struct {
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral" #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; int i;
@ -121,7 +121,7 @@ static char *finger_str_to_msg(const char *finger_name, const char *driver_name,
* verify-match * verify-match
* verify-unknown-error * 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) if (result == NULL)
return NULL; return NULL;
@ -147,7 +147,7 @@ static const char *verify_result_str_to_msg(const char *result, gboolean is_swip
* enroll-failed * enroll-failed
* enroll-unknown-error * 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) if (result == NULL)
return NULL; return NULL;