tests/constructor: Fix "unknown pragma ignored" warning on clang

This commit is contained in:
Luca Bacci 2023-10-03 14:32:39 +02:00 committed by Philip Withnall
parent 9c81ff46a2
commit c287e69c0a

View File

@ -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)