aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-03 08:56:47 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-03 08:56:47 +0000
commit39b2e46e72ad82ec2971b859eae75562751f8464 (patch)
treeb9e7a0ebefda5d9e485f4c779ddc3ee80c85ed17 /vt.c
parentmacros: add wrappers for more GCC/Clang attributes/pragmas/builtins (diff)
Use wrappers from macros.h instead of bare GCC attributes/pragmas
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/vt.c b/vt.c
index 120b9c98..e8e10b2f 100644
--- a/vt.c
+++ b/vt.c
@@ -750,10 +750,7 @@ action_utf8_44(struct terminal *term, uint8_t c)
action_utf8_print(term, term->vt.utf8);
}
-#if defined(__GNUC__)
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wpedantic"
-#endif
+IGNORE_WARNING("-Wpedantic")
static enum state
state_ground_switch(struct terminal *term, uint8_t data)
@@ -1277,9 +1274,7 @@ state_utf8_43_switch(struct terminal *term, uint8_t data)
}
}
-#if defined(__GNUC__)
- #pragma GCC diagnostic pop
-#endif
+UNIGNORE_WARNINGS
void
vt_from_slave(struct terminal *term, const uint8_t *data, size_t len)