drivers, examples: Don't use -Wno-pointer-sign and fix relative errors
This commit is contained in:
parent
a29586f398
commit
e7c7f368c9
5 changed files with 5 additions and 6 deletions
|
@ -57,7 +57,7 @@ load_data (void)
|
||||||
GVariantDict *res;
|
GVariantDict *res;
|
||||||
GVariant *var;
|
GVariant *var;
|
||||||
g_autofree gchar *contents = NULL;
|
g_autofree gchar *contents = NULL;
|
||||||
gssize length = 0;
|
gsize length = 0;
|
||||||
|
|
||||||
if (!g_file_get_contents (STORAGE_FILE, &contents, &length, NULL))
|
if (!g_file_get_contents (STORAGE_FILE, &contents, &length, NULL))
|
||||||
{
|
{
|
||||||
|
|
|
@ -407,7 +407,7 @@ static gboolean
|
||||||
parse_print_data (GVariant *data,
|
parse_print_data (GVariant *data,
|
||||||
guint8 *finger,
|
guint8 *finger,
|
||||||
const guint8 **user_id,
|
const guint8 **user_id,
|
||||||
gssize *user_id_len)
|
gsize *user_id_len)
|
||||||
{
|
{
|
||||||
g_autoptr(GVariant) user_id_var = NULL;
|
g_autoptr(GVariant) user_id_var = NULL;
|
||||||
|
|
||||||
|
@ -506,7 +506,7 @@ list_msg_cb (FpiDeviceSynaptics *self,
|
||||||
get_enroll_templates_resp->templates[n].user_id,
|
get_enroll_templates_resp->templates[n].user_id,
|
||||||
get_enroll_templates_resp->templates[n].finger_id);
|
get_enroll_templates_resp->templates[n].finger_id);
|
||||||
|
|
||||||
userid = get_enroll_templates_resp->templates[n].user_id;
|
userid = (gchar *) get_enroll_templates_resp->templates[n].user_id;
|
||||||
|
|
||||||
print = fp_print_new (FP_DEVICE (self));
|
print = fp_print_new (FP_DEVICE (self));
|
||||||
uid = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
|
uid = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
|
||||||
|
|
|
@ -375,7 +375,7 @@ read_msg_cb (FpiUsbTransfer *transfer, FpDevice *device,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp (udata->buffer, "Ciao", 4) != 0)
|
if (strncmp ((char *) udata->buffer, "Ciao", 4) != 0)
|
||||||
{
|
{
|
||||||
fp_err ("no Ciao for you!!");
|
fp_err ("no Ciao for you!!");
|
||||||
error = fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
|
error = fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
|
||||||
|
|
|
@ -399,7 +399,7 @@ interrupt_callback (FpiUsbTransfer *transfer, FpDevice *device,
|
||||||
gpointer user_data, GError *error)
|
gpointer user_data, GError *error)
|
||||||
{
|
{
|
||||||
FpDeviceVfs0050 *self = FPI_DEVICE_VFS0050 (device);
|
FpDeviceVfs0050 *self = FPI_DEVICE_VFS0050 (device);
|
||||||
char *interrupt = transfer->buffer;
|
unsigned char *interrupt = transfer->buffer;
|
||||||
|
|
||||||
/* we expect a cancellation error when the device is deactivating
|
/* we expect a cancellation error when the device is deactivating
|
||||||
* go into the SSM_CLEAR_EP2 state in that case. */
|
* go into the SSM_CLEAR_EP2 state in that case. */
|
||||||
|
|
|
@ -31,7 +31,6 @@ common_cflags = cc.get_supported_arguments([
|
||||||
'-Wunused',
|
'-Wunused',
|
||||||
'-Wstrict-prototypes',
|
'-Wstrict-prototypes',
|
||||||
'-Werror-implicit-function-declaration',
|
'-Werror-implicit-function-declaration',
|
||||||
'-Wno-pointer-sign',
|
|
||||||
'-Wshadow',
|
'-Wshadow',
|
||||||
'-DGLIB_VERSION_MIN_REQUIRED=' + glib_version_def,
|
'-DGLIB_VERSION_MIN_REQUIRED=' + glib_version_def,
|
||||||
'-DGLIB_VERSION_MAX_ALLOWED=' + glib_version_def,
|
'-DGLIB_VERSION_MAX_ALLOWED=' + glib_version_def,
|
||||||
|
|
Loading…
Reference in a new issue