Blame SOURCES/0067-drivers-examples-Don-t-use-Wno-pointer-sign-and-fix-.patch

73b847
From 34b61d11546e764b08bc97276b102560fb899959 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Tue, 3 Dec 2019 19:36:26 +0100
73b847
Subject: [PATCH 067/181] drivers, examples: Don't use -Wno-pointer-sign and
73b847
 fix relative errors
73b847
73b847
---
73b847
 examples/storage.c                      | 2 +-
73b847
 libfprint/drivers/synaptics/synaptics.c | 4 ++--
73b847
 libfprint/drivers/upekts.c              | 2 +-
73b847
 libfprint/drivers/vfs0050.c             | 2 +-
73b847
 meson.build                             | 1 -
73b847
 5 files changed, 5 insertions(+), 6 deletions(-)
73b847
73b847
diff --git a/examples/storage.c b/examples/storage.c
73b847
index 932163e..db35854 100644
73b847
--- a/examples/storage.c
73b847
+++ b/examples/storage.c
73b847
@@ -57,7 +57,7 @@ load_data (void)
73b847
   GVariantDict *res;
73b847
   GVariant *var;
73b847
   g_autofree gchar *contents = NULL;
73b847
-  gssize length = 0;
73b847
+  gsize length = 0;
73b847
 
73b847
   if (!g_file_get_contents (STORAGE_FILE, &contents, &length, NULL))
73b847
     {
73b847
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
73b847
index 1524c45..247b658 100644
73b847
--- a/libfprint/drivers/synaptics/synaptics.c
73b847
+++ b/libfprint/drivers/synaptics/synaptics.c
73b847
@@ -407,7 +407,7 @@ static gboolean
73b847
 parse_print_data (GVariant      *data,
73b847
                   guint8        *finger,
73b847
                   const guint8 **user_id,
73b847
-                  gssize        *user_id_len)
73b847
+                  gsize         *user_id_len)
73b847
 {
73b847
   g_autoptr(GVariant) user_id_var = NULL;
73b847
 
73b847
@@ -506,7 +506,7 @@ list_msg_cb (FpiDeviceSynaptics *self,
73b847
                    get_enroll_templates_resp->templates[n].user_id,
73b847
                    get_enroll_templates_resp->templates[n].finger_id);
73b847
 
73b847
-          userid = get_enroll_templates_resp->templates[n].user_id;
73b847
+          userid = (gchar *) get_enroll_templates_resp->templates[n].user_id;
73b847
 
73b847
           print = fp_print_new (FP_DEVICE (self));
73b847
           uid = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
73b847
diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c
73b847
index 05cd9c5..6ce8136 100644
73b847
--- a/libfprint/drivers/upekts.c
73b847
+++ b/libfprint/drivers/upekts.c
73b847
@@ -375,7 +375,7 @@ read_msg_cb (FpiUsbTransfer *transfer, FpDevice *device,
73b847
       goto err;
73b847
     }
73b847
 
73b847
-  if (strncmp (udata->buffer, "Ciao", 4) != 0)
73b847
+  if (strncmp ((char *) udata->buffer, "Ciao", 4) != 0)
73b847
     {
73b847
       fp_err ("no Ciao for you!!");
73b847
       error = fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
73b847
diff --git a/libfprint/drivers/vfs0050.c b/libfprint/drivers/vfs0050.c
73b847
index 9b99dc3..bb6851f 100644
73b847
--- a/libfprint/drivers/vfs0050.c
73b847
+++ b/libfprint/drivers/vfs0050.c
73b847
@@ -399,7 +399,7 @@ interrupt_callback (FpiUsbTransfer *transfer, FpDevice *device,
73b847
                     gpointer user_data, GError *error)
73b847
 {
73b847
   FpDeviceVfs0050 *self = FPI_DEVICE_VFS0050 (device);
73b847
-  char *interrupt = transfer->buffer;
73b847
+  unsigned char *interrupt = transfer->buffer;
73b847
 
73b847
   /* we expect a cancellation error when the device is deactivating
73b847
    * go into the SSM_CLEAR_EP2 state in that case. */
73b847
diff --git a/meson.build b/meson.build
73b847
index ef352ba..54761c4 100644
73b847
--- a/meson.build
73b847
+++ b/meson.build
73b847
@@ -31,7 +31,6 @@ common_cflags = cc.get_supported_arguments([
73b847
     '-Wunused',
73b847
     '-Wstrict-prototypes',
73b847
     '-Werror-implicit-function-declaration',
73b847
-    '-Wno-pointer-sign',
73b847
     '-Wshadow',
73b847
     '-DGLIB_VERSION_MIN_REQUIRED=' + glib_version_def,
73b847
     '-DGLIB_VERSION_MAX_ALLOWED=' + glib_version_def,
73b847
-- 
73b847
2.24.1
73b847