[Replicant] [PATCH 05/15] devices: n7100: silence unused variable warnings

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Tue May 7 13:57:24 UTC 2019


Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 samsung-ipc/devices/n7100/n7100.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/samsung-ipc/devices/n7100/n7100.c b/samsung-ipc/devices/n7100/n7100.c
index a6145d7..eb2005b 100644
--- a/samsung-ipc/devices/n7100/n7100.c
+++ b/samsung-ipc/devices/n7100/n7100.c
@@ -299,12 +299,12 @@ int n7100_poll(void *data, struct ipc_poll_fds *fds, struct timeval *timeout)
     return rc;
 }
 
-int n7100_power_on(void *data)
+int n7100_power_on(__attribute__((unused)) void *data)
 {
     return 0;
 }
 
-int n7100_power_off(void *data)
+int n7100_power_off(__attribute__((unused)) void *data)
 {
     int fd;
     int rc;
@@ -323,18 +323,21 @@ int n7100_power_off(void *data)
     return 0;
 }
 
-int n7100_gprs_activate(void *data, unsigned int cid)
+int n7100_gprs_activate(__attribute__((unused)) void *data,
+			__attribute__((unused)) unsigned int cid)
 {
     return 0;
 }
 
-int n7100_gprs_deactivate(void *data, unsigned int cid)
+int n7100_gprs_deactivate(__attribute__((unused)) void *data,
+			  __attribute__((unused)) unsigned int cid)
 {
     return 0;
 }
 
-int n7100_data_create(void **transport_data, void **power_data,
-    void **gprs_data)
+int n7100_data_create(void **transport_data,
+		      __attribute__((unused)) void **power_data,
+		      __attribute__((unused)) void **gprs_data)
 {
     if (transport_data == NULL)
         return -1;
@@ -344,8 +347,9 @@ int n7100_data_create(void **transport_data, void **power_data,
     return 0;
 }
 
-int n7100_data_destroy(void *transport_data, void *power_data,
-    void *gprs_data)
+int n7100_data_destroy(void *transport_data,
+		       __attribute__((unused)) void *power_data,
+		       __attribute__((unused)) void *gprs_data)
 {
     if (transport_data == NULL)
         return -1;
-- 
2.21.0



More information about the Replicant mailing list