Fixed check (when using ./autogen.sh --enable-option-checking=fatal --enable-debug-messages --with-thread-sanitizer --with-pcre2 --with-maxminddb --enable-tls-sigs)

This commit is contained in:
Luca Deri
2023-12-22 21:01:14 +01:00
parent a95d4744b6
commit cbea1b2203
+4 -4
View File
@@ -1476,11 +1476,11 @@ struct ndpi_flow_struct {
#if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__)
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 224,
"Size of the struct member protocols increased to more than 224 bytes, "
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 256,
"Size of the struct member protocols increased to more than 256 bytes, "
"please check if this change is necessary.");
_Static_assert(sizeof(struct ndpi_flow_struct) <= 976,
"Size of the flow struct increased to more than 976 bytes, "
_Static_assert(sizeof(struct ndpi_flow_struct) <= 1008,
"Size of the flow struct increased to more than 1008 bytes, "
"please check if this change is necessary.");
#endif
#endif