mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-01 04:10:06 +00:00
26 lines
1.2 KiB
C
26 lines
1.2 KiB
C
#pragma once
|
|
//
|
|
// Deactivate a few more warnings to allow standard header includes,
|
|
// without generating warnings in '-Wall' compile actions enabled
|
|
//
|
|
|
|
#include "NetImgui_WarningDisable.h"
|
|
|
|
//=================================================================================================
|
|
// Clang
|
|
//=================================================================================================
|
|
#if defined (__clang__)
|
|
|
|
|
|
//=================================================================================================
|
|
// Visual Studio warnings
|
|
//=================================================================================================
|
|
#elif defined(_MSC_VER)
|
|
#pragma warning (disable: 4061) // enumerator xxx in switch of enum yyy is not explicitly handled by a case label (d3d11.h)
|
|
#pragma warning (disable: 4548) // expression before comma has no effect; expected expression with side - effect (malloc.h VS2017)
|
|
#pragma warning (disable: 4668) // xxx is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' (winsock2.h)
|
|
#pragma warning (disable: 4574) // xxx is defined to be '0': did you mean to use yyy (winsock2.h VS2017)
|
|
#pragma warning (disable: 4820) // xxx : yyy bytes padding added after data member zzz
|
|
|
|
#endif
|