From 25a00bf2a9f392947b758ce693e9f0944d187429 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 5 Nov 2023 12:38:39 +1100 Subject: [PATCH] Remove ignored packed attribute and static_assert on Node size This static_assert is not necessary for the code to work and is not valid on every platform. --- src/regex_impl.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/regex_impl.cc b/src/regex_impl.cc index a02554c7..c793a927 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -74,18 +74,14 @@ struct ParsedRegex }; using NodeIndex = int16_t; - struct [[gnu::packed]] Node + struct Node { Op op; bool ignore_case; NodeIndex children_end; Codepoint value; Quantifier quantifier; - uint16_t filler = 0; }; -#ifndef __ppc__ - static_assert(sizeof(Node) == 16, ""); -#endif Vector nodes;