all: drop unused variables
Keeps build with GCC 8 happy. mm-base-call.c:758:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-base-call.c:822:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-base-sms.c:908:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-sms-list.c:331:25: warning: variable 'ctx' set but not used [-Wunused-but-set-variable] mm-iface-modem-messaging.c:1210:21: warning: variable 'storage_ctx' set but not used [-Wunused-but-set-variable] huawei/mm-plugin-huawei.c:183:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] ublox/mm-plugin-ublox.c:161:24: warning: variable 'response' set but not used [-Wunused-but-set-variable] ublox/mm-plugin-ublox.c:159:24: warning: variable 'ctx' set but not used [-Wunused-but-set-variable] icera/mm-modem-helpers-icera.c:218:25: warning: variable 'first_free' set but not used [-Wunused-but-set-variable] novatel/mm-common-novatel.c:50:18: warning: variable 'response' set but not used [-Wunused-but-set-variable]
This commit is contained in:

committed by
Aleksander Morgado

parent
5072db3418
commit
b39dd2ec05
@@ -180,12 +180,11 @@ curc_ready (MMPortSerialAt *port,
|
|||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
HuaweiCustomInitContext *ctx;
|
HuaweiCustomInitContext *ctx;
|
||||||
const gchar *response;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
ctx = g_task_get_task_data (task);
|
ctx = g_task_get_task_data (task);
|
||||||
|
|
||||||
response = mm_port_serial_at_command_finish (port, res, &error);
|
mm_port_serial_at_command_finish (port, res, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
/* Retry if we get a timeout error */
|
/* Retry if we get a timeout error */
|
||||||
if (g_error_matches (error,
|
if (g_error_matches (error,
|
||||||
|
@@ -215,7 +215,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response,
|
|||||||
GError *local = NULL;
|
GError *local = NULL;
|
||||||
gboolean success = FALSE;
|
gboolean success = FALSE;
|
||||||
char **items;
|
char **items;
|
||||||
guint num_items, i, first_free;
|
guint num_items, i;
|
||||||
gint num;
|
gint num;
|
||||||
|
|
||||||
g_return_val_if_fail (out_ip4_config, FALSE);
|
g_return_val_if_fail (out_ip4_config, FALSE);
|
||||||
@@ -240,7 +240,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response,
|
|||||||
|
|
||||||
/* Strip any spaces on elements; inet_pton() doesn't like them */
|
/* Strip any spaces on elements; inet_pton() doesn't like them */
|
||||||
num_items = g_strv_length (items);
|
num_items = g_strv_length (items);
|
||||||
for (i = 0, first_free = 0; i < num_items; i++)
|
for (i = 0; i < num_items; i++)
|
||||||
items[i] = g_strstrip (items[i]);
|
items[i] = g_strstrip (items[i]);
|
||||||
|
|
||||||
if (num_items < 7) {
|
if (num_items < 7) {
|
||||||
|
@@ -47,10 +47,9 @@ nwdmat_ready (MMPortSerialAt *port,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GTask* task)
|
GTask* task)
|
||||||
{
|
{
|
||||||
const gchar *response;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
response = mm_port_serial_at_command_finish (port, res, &error);
|
mm_port_serial_at_command_finish (port, res, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
if (g_error_matches (error,
|
if (g_error_matches (error,
|
||||||
MM_SERIAL_ERROR,
|
MM_SERIAL_ERROR,
|
||||||
|
@@ -156,15 +156,12 @@ quick_at_ready (MMPortSerialAt *port,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
CustomInitContext *ctx;
|
|
||||||
MMPortProbe *probe;
|
MMPortProbe *probe;
|
||||||
const gchar *response;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
ctx = g_task_get_task_data (task);
|
|
||||||
probe = g_task_get_source_object (task);
|
probe = g_task_get_source_object (task);
|
||||||
|
|
||||||
response = mm_port_serial_at_command_finish (port, res, &error);
|
mm_port_serial_at_command_finish (port, res, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
/* On a timeout error, wait for READY URC */
|
/* On a timeout error, wait for READY URC */
|
||||||
if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) {
|
if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) {
|
||||||
|
@@ -755,11 +755,10 @@ call_hangup_ready (MMBaseModem *modem,
|
|||||||
{
|
{
|
||||||
MMBaseCall *self;
|
MMBaseCall *self;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
const gchar *response;
|
|
||||||
|
|
||||||
self = g_task_get_source_object (task);
|
self = g_task_get_source_object (task);
|
||||||
|
|
||||||
response = mm_base_modem_at_command_finish (modem, res, &error);
|
mm_base_modem_at_command_finish (modem, res, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) {
|
if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) {
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
@@ -819,9 +818,8 @@ call_send_dtmf_ready (MMBaseModem *modem,
|
|||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
const gchar *response = NULL;
|
|
||||||
|
|
||||||
response = mm_base_modem_at_command_finish (modem, res, &error);
|
mm_base_modem_at_command_finish (modem, res, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
mm_dbg ("Couldn't send_dtmf: '%s'", error->message);
|
mm_dbg ("Couldn't send_dtmf: '%s'", error->message);
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
|
@@ -905,10 +905,9 @@ store_ready (MMBaseModem *modem,
|
|||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
SmsStoreContext *ctx;
|
SmsStoreContext *ctx;
|
||||||
const gchar *response;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
response = mm_base_modem_at_command_finish (modem, res, &error);
|
mm_base_modem_at_command_finish (modem, res, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
g_object_unref (task);
|
g_object_unref (task);
|
||||||
|
@@ -1207,10 +1207,8 @@ init_current_storages_ready (MMIfaceModemMessaging *self,
|
|||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
InitializationContext *ctx;
|
InitializationContext *ctx;
|
||||||
StorageContext *storage_ctx;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
storage_ctx = get_storage_context (self);
|
|
||||||
if (!MM_IFACE_MODEM_MESSAGING_GET_INTERFACE (self)->init_current_storages_finish (
|
if (!MM_IFACE_MODEM_MESSAGING_GET_INTERFACE (self)->init_current_storages_finish (
|
||||||
self,
|
self,
|
||||||
res,
|
res,
|
||||||
|
@@ -328,11 +328,6 @@ mm_sms_list_take_part (MMSmsList *self,
|
|||||||
MMSmsStorage storage,
|
MMSmsStorage storage,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
PartIndexAndStorage ctx;
|
|
||||||
|
|
||||||
ctx.part_index = mm_sms_part_get_index (part);
|
|
||||||
ctx.storage = storage;
|
|
||||||
|
|
||||||
/* Ensure we don't have already taken a part with the same index */
|
/* Ensure we don't have already taken a part with the same index */
|
||||||
if (mm_sms_list_has_part (self,
|
if (mm_sms_list_has_part (self,
|
||||||
storage,
|
storage,
|
||||||
|
Reference in New Issue
Block a user