mirror of
https://github.com/acpica/acpica/
synced 2025-01-09 02:52:45 +03:00
Get rid of MSVC warnings that arise actually due to GCC's new dangling pointer warning and also tGCC's blindspot to work with nested named structs/unions resulting in breaking of ACPI event-handling
This commit is contained in:
parent
2900988ee9
commit
d58f24933d
@ -172,12 +172,21 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
/* Eliminate warnings for POSIX clib function names (open, write, etc.) */
|
||||
/* Eliminate warnings for POSIX clib function names (open, write, etc.) */
|
||||
|
||||
#ifndef _CRT_NONSTDC_NO_DEPRECATE
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
/* Disable these warnings under Windows and MSVC since C4201: nameless
|
||||
* structs/unions are needed as ACPI event-handling under Linux/GCC breaks
|
||||
* with named and nested structs/unions while C4068: unknown pragma
|
||||
* complains of GCC pragmas in use to disable dangling ptr warnings
|
||||
*/
|
||||
|
||||
#pragma warning( disable: 4201)
|
||||
#pragma warning( disable: 4068)
|
||||
#pragma warning( push)
|
||||
|
||||
#define ACPI_MACHINE_WIDTH 32
|
||||
#define ACPI_USE_NATIVE_DIVIDE
|
||||
|
Loading…
Reference in New Issue
Block a user