Resolve compiler warnings.

This commit is contained in:
László Monda
2017-01-09 20:39:25 +01:00
parent a79a2c7365
commit 0f70d1eb8e
3 changed files with 7 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ static uint16_t readCompactLength(serialized_buffer_t *buffer) {
return length;
}
/*
static const char *readString(serialized_buffer_t *buffer, uint16_t *len) {
const char *str = (const char *)&(buffer->buffer[buffer->offset]);
@@ -49,6 +50,7 @@ static const char *readString(serialized_buffer_t *buffer, uint16_t *len) {
return str;
}
*/
// ----------------
@@ -127,8 +129,8 @@ static void processSwitchLayerAction(key_action_t *action, serialized_buffer_t *
}
static void processSwitchKeymapAction(key_action_t *action, serialized_buffer_t *buffer) {
uint16_t len;
const char *keymap = readString(buffer, &len);
// uint16_t len;
// const char *keymap = readString(buffer, &len);
action->type = KEY_ACTION_SWITCH_KEYMAP;