mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
tests/constructor: Fix "unknown pragma ignored" warning on clang
This commit is contained in:
parent
9c81ff46a2
commit
c287e69c0a
@ -32,11 +32,14 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("O0")
|
||||
#if defined (_MSC_VER)
|
||||
# pragma optimize ("", off)
|
||||
#else
|
||||
#pragma optimize ("", off)
|
||||
# if defined (__clang__)
|
||||
# pragma clang optimize off
|
||||
# elif defined (__GNUC__)
|
||||
# pragma GCC optimize ("O0")
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user