mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
tests: Fix clang compilation failure due to unrecognised option in pragma
Sigh. ``` ../glib/tests/atomic.c:139:32: error: unknown warning group '-Wdiscarded-qualifiers', ignored [-Werror,-Wunknown-warning-option] \#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" ^ 1 error generated. ``` Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
b9490a499a
commit
3be537a2a8
@ -136,6 +136,8 @@ test_types (void)
|
||||
* to make sure that we don’t warn when built against older third party code. */
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
|
||||
#pragma GCC diagnostic ignored "-Wpragmas"
|
||||
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
|
||||
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
|
||||
g_atomic_pointer_set (&vp_str_vol, NULL);
|
||||
g_atomic_pointer_set (&vp_str, str);
|
||||
|
Loading…
Reference in New Issue
Block a user