mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-02 16:38:02 +02:00
test: fix the gcc diagnostics pragma
pop without push restores the commandline options. The proper way is to
push, then ignore, then pop.
And while we're at it, change the pop argument to a comment - pop ignores
the argument, but be proper about it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit d803f296c6)
This commit is contained in:
parent
ec6de52116
commit
3ac50dca8b
1 changed files with 2 additions and 1 deletions
|
|
@ -150,6 +150,7 @@ number_formatting(void)
|
|||
assert(check_float_format_test(float_tests[i]));
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-security"
|
||||
static void logging_format(void)
|
||||
{
|
||||
|
|
@ -378,7 +379,7 @@ static void logging_format(void)
|
|||
|
||||
#undef read_log_msg
|
||||
}
|
||||
#pragma GCC diagnostic pop "-Wformat-security"
|
||||
#pragma GCC diagnostic pop /* "-Wformat-security" */
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue