mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[APITESTS] Ignore GCC8 warnings where we test some crazy stuff
This commit is contained in:
parent
6b10706205
commit
1c0a2a35e7
4 changed files with 19 additions and 2 deletions
|
@ -6,6 +6,11 @@
|
|||
* 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
|
||||
#include <apitest.h>
|
||||
#else
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
#include <apitest.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 =
|
||||
{
|
||||
0, 0, 0, 0, 5656, 0, 0
|
||||
|
|
|
@ -16,10 +16,13 @@
|
|||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4778) // unterminated format string '%'
|
||||
#else
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic ignored "-Wformat"
|
||||
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
||||
#pragma GCC diagnostic ignored "-Wnonnull"
|
||||
#if __GNUC__ >= 7
|
||||
#pragma GCC diagnostic ignored "-Wformat-overflow"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
#include <strsafe.h>
|
||||
#include "dll_startup.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic ignored "-Wuninitialized"
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
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");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
TestInitStatic();
|
||||
TestDllStartup();
|
||||
TestStaticDestruct();
|
||||
|
|
Loading…
Reference in a new issue