mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
Use wrappers from macros.h instead of bare GCC attributes/pragmas
This commit is contained in:
parent
2559a9711c
commit
39b2e46e72
4 changed files with 17 additions and 15 deletions
9
vt.c
9
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue