diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-09 15:11:28 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-09 15:11:28 +0100 |
commit | bd79f2930d1c011a6a230ca293e7b12e5af4159a (patch) | |
tree | ed8b454c9906ae82772011faf75584485b7f9b30 | |
parent | 8123d33e66b63651798a547c38fcd8b89921e8e6 (diff) | |
download | hardware_replicant_libsamsung-ipc-history/09-02-2021-utils-rework-before-rebase.tar.gz hardware_replicant_libsamsung-ipc-history/09-02-2021-utils-rework-before-rebase.tar.bz2 hardware_replicant_libsamsung-ipc-history/09-02-2021-utils-rework-before-rebase.zip |
Fix compilation and format string issuehistory/09-02-2021-utils-rework-before-rebase
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | tools/common/modem.c | 2 | ||||
-rw-r--r-- | tools/ipc-sim.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/common/modem.c b/tools/common/modem.c index 2faec1b..fac9797 100644 --- a/tools/common/modem.c +++ b/tools/common/modem.c @@ -168,7 +168,7 @@ int modem_stop(struct ipc_client *client) /* TODO: share the code */ static int modem_response_pwr(struct ipc_client *client, struct ipc_message *resp, - enum modem_state new_state) + __attribute__((unused)) enum modem_state new_state) { int state_n; diff --git a/tools/ipc-sim.c b/tools/ipc-sim.c index 9f60591..ffb5680 100644 --- a/tools/ipc-sim.c +++ b/tools/ipc-sim.c @@ -78,7 +78,7 @@ int ipc_sim_request_imei(struct ipc_client *client) } int ipc_sim_parse_imei_response(struct ipc_client *client, struct ipc_message *message, - void* app_data) + __attribute__((unused)) void* app_data) { struct ipc_misc_me_sn_response_data *data; char *imei; @@ -158,7 +158,7 @@ int main(int argc, char** argv) fd = open("/dev/tty0", O_WRONLY|O_NOCTTY); if (fd == -1) { fd = errno; - printf("Opening /dev/tty0 failed: error %d\n", + printf("Opening /dev/tty0 failed: error %d: %s\n", fd, strerror(fd)); return -1; } |