mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[APITESTS] Ignore GCC8 warnings where we test some crazy stuff
This commit is contained in:
parent
6b10706205
commit
1c0a2a35e7
|
@ -6,6 +6,11 @@
|
||||||
* Copyright 2019 Mark Jansen (mark.jansen@reactos.org)
|
* Copyright 2019 Mark Jansen (mark.jansen@reactos.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
|
// this is an intended behaviour
|
||||||
|
#pragma GCC diagnostic ignored "-Wclass-memaccess"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_APITEST
|
#ifdef HAVE_APITEST
|
||||||
#include <apitest.h>
|
#include <apitest.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -8,6 +8,11 @@
|
||||||
#include <apitest.h>
|
#include <apitest.h>
|
||||||
#include "dll_startup.h"
|
#include "dll_startup.h"
|
||||||
|
|
||||||
|
// we test the initial value of m_uninit variable here, so this is required
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic ignored "-Wuninitialized"
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct counter_values counter_values =
|
static struct counter_values counter_values =
|
||||||
{
|
{
|
||||||
0, 0, 0, 0, 5656, 0, 0
|
0, 0, 0, 0, 5656, 0, 0
|
||||||
|
|
|
@ -16,10 +16,13 @@
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4778) // unterminated format string '%'
|
#pragma warning(disable:4778) // unterminated format string '%'
|
||||||
#else
|
#elif defined(__GNUC__)
|
||||||
#pragma GCC diagnostic ignored "-Wformat"
|
#pragma GCC diagnostic ignored "-Wformat"
|
||||||
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
||||||
#pragma GCC diagnostic ignored "-Wnonnull"
|
#pragma GCC diagnostic ignored "-Wnonnull"
|
||||||
|
#if __GNUC__ >= 7
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat-overflow"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
|
@ -10,6 +10,10 @@
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
#include "dll_startup.h"
|
#include "dll_startup.h"
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic ignored "-Wuninitialized"
|
||||||
|
#endif
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
extern int static_init_counter;
|
extern int static_init_counter;
|
||||||
|
@ -221,7 +225,7 @@ START_TEST(static_construct)
|
||||||
ok(g_CreatedFileMapping == FALSE, "Expected the shared memory to be created by my parent!\n");
|
ok(g_CreatedFileMapping == FALSE, "Expected the shared memory to be created by my parent!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
TestInitStatic();
|
TestInitStatic();
|
||||||
TestDllStartup();
|
TestDllStartup();
|
||||||
TestStaticDestruct();
|
TestStaticDestruct();
|
||||||
|
|
Loading…
Reference in a new issue