vt: only define esc_as_string() when debug logging has been enabled

This commit is contained in:
Daniel Eklöf 2019-11-30 00:02:19 +01:00
parent cd9510aa7b
commit 66f941d00a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
vt.c
View file

@ -567,6 +567,7 @@ static const enum action exit_actions[] = {
[STATE_SOS_PM_APC_STRING] = ACTION_NONE,
};
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
static const char *
esc_as_string(struct terminal *term, uint8_t final)
{
@ -585,6 +586,7 @@ esc_as_string(struct terminal *term, uint8_t final)
return msg;
}
#endif
static void
esc_dispatch(struct terminal *term, uint8_t final)