mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
pam: Fix "format-nonliteral" warning
In file included from tests/enroll.c:29:0:
pam/fingerprint-strings.h: In function ‘finger_str_to_msg’:
pam/fingerprint-strings.h:99:6: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
return g_strdup_printf (TR (fingers[i].place_str_specific), driver_name);
^~~~~~
pam/fingerprint-strings.h:104:6: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
return g_strdup_printf (TR (fingers[i].swipe_str_specific), driver_name);
^~~~~~
This commit is contained in:
@ -85,6 +85,9 @@ struct {
|
|||||||
{ NULL, NULL, NULL, NULL, NULL }
|
{ NULL, NULL, NULL, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#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)
|
static char *finger_str_to_msg(const char *finger_name, const char *driver_name, gboolean is_swipe)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -111,6 +114,8 @@ static char *finger_str_to_msg(const char *finger_name, const char *driver_name,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
/* Cases not handled:
|
/* Cases not handled:
|
||||||
* verify-no-match
|
* verify-no-match
|
||||||
* verify-match
|
* verify-match
|
||||||
|
|||||||
Reference in New Issue
Block a user