Disable warning due to zero length array in Microsoft's compiler

This commit is contained in:
Victor M. Alvarez
2017-05-19 13:36:38 +02:00
parent e05645d5cf
commit f3e12ec15d
+11
View File
@@ -140,12 +140,23 @@ struct RE_AST
};
// Disable warning due to zero length array in Microsoft's compiler
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4200)
#endif
struct RE
{
uint32_t flags;
uint8_t code[0];
};
#ifdef _MSC_VER
#pragma warning(pop)
#endif
struct RE_ERROR
{