mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Disable finger_num_to_str when debugging is disabled
One less warning.
This commit is contained in:
committed by
Daniel Drake
parent
749bb3e30e
commit
d816fed5c3
@@ -73,6 +73,7 @@ void fpi_data_exit(void)
|
|||||||
((finger) >= LEFT_THUMB && (finger) <= RIGHT_LITTLE)
|
((finger) >= LEFT_THUMB && (finger) <= RIGHT_LITTLE)
|
||||||
|
|
||||||
/* for debug messages only */
|
/* for debug messages only */
|
||||||
|
#ifdef ENABLE_DEBUG_LOGGING
|
||||||
static const char *finger_num_to_str(enum fp_finger finger)
|
static const char *finger_num_to_str(enum fp_finger finger)
|
||||||
{
|
{
|
||||||
const char *names[] = {
|
const char *names[] = {
|
||||||
@@ -91,6 +92,7 @@ static const char *finger_num_to_str(enum fp_finger finger)
|
|||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
return names[finger];
|
return names[finger];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct fp_print_data *print_data_new(uint16_t driver_id,
|
static struct fp_print_data *print_data_new(uint16_t driver_id,
|
||||||
uint32_t devtype, enum fp_print_data_type type, size_t length)
|
uint32_t devtype, enum fp_print_data_type type, size_t length)
|
||||||
|
|||||||
Reference in New Issue
Block a user