diff --git a/src/shared/att.c b/src/shared/att.c
index bc01827..ee425d8 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
case ATT_OP_TYPE_RSP:
/* Set in_req to false to indicate that no request is pending */
att->in_req = false;
+
+ /* Fall through to the next case */
+ case ATT_OP_TYPE_CMD:
+ case ATT_OP_TYPE_NOT:
+ case ATT_OP_TYPE_CONF:
+ case ATT_OP_TYPE_UNKNOWN:
default:
destroy_att_send_op(op);
return true;
att->in_req = true;
/* Fall through to the next case */
+ case ATT_OP_TYPE_CMD:
+ case ATT_OP_TYPE_NOT:
+ case ATT_OP_TYPE_UNKNOWN:
+ case ATT_OP_TYPE_IND:
default:
/* For all other opcodes notify the upper layer of the PDU and
* let them act on it.
case ATT_OP_TYPE_IND:
result = queue_push_tail(att->ind_queue, op);
break;
+ case ATT_OP_TYPE_CMD:
+ case ATT_OP_TYPE_NOT:
+ case ATT_OP_TYPE_UNKNOWN:
+ case ATT_OP_TYPE_RSP:
+ case ATT_OP_TYPE_CONF:
default:
result = queue_push_tail(att->write_queue, op);
break;
diff --git a/src/shared/gatt-helpers.c b/src/shared/gatt-helpers.c
index dc4a8e8..c6e179c 100644
--- a/src/shared/gatt-helpers.c
+++ b/src/shared/gatt-helpers.c
bt_uuid_to_uuid128(src, &uuid);
bswap_128(&uuid.value.u128, dst);
break;
+ case BT_UUID_UNSPEC:
default:
break;
}
diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c
index 3f3db56..00f36fd 100644
--- a/src/shared/gatt-server.c
+++ b/src/shared/gatt-server.c
bt_uuid_to_uuid128(src, &uuid);
bswap_128(&uuid.value.u128, dst);
break;
+ case BT_UUID_UNSPEC:
default:
break;
}
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index ead082e..9d937a5 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
case HFP_RESULT_ERROR:
str = "ERROR";
break;
+ case HFP_RESULT_RING:
+ case HFP_RESULT_NO_CARRIER:
+ case HFP_RESULT_BUSY:
+ case HFP_RESULT_NO_ANSWER:
+ case HFP_RESULT_DELAYED:
+ case HFP_RESULT_BLACKLISTED:
+ case HFP_RESULT_CME_ERROR:
+ case HFP_RESULT_NO_DIALTONE:
+ case HFP_RESULT_CONNECT:
default:
return false;
}
diff --git a/src/shared/io-glib.c b/src/shared/io-glib.c
index e9578e1..6687a6b 100644
--- a/src/shared/io-glib.c
+++ b/src/shared/io-glib.c
case G_IO_HUP:
watch = &io->disconnect_watch;
break;
+ case G_IO_PRI:
+ case G_IO_ERR:
+ case G_IO_NVAL:
default:
return false;
}