X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fcompression.h;h=98eca33114dba0a66d48d935d1191eda51a6046a;hb=90cde91141ec61be4354d8deab21edb8fdf01022;hp=96fc9ea88165903cb3686b9e1da7d4ecc6e9c4ca;hpb=8cb4dbb04af15e95e9a302670a4c6fd21e0ebfd6;p=tinc diff --git a/src/compression.h b/src/compression.h index 96fc9ea8..98eca331 100644 --- a/src/compression.h +++ b/src/compression.h @@ -22,4 +22,6 @@ typedef enum compression_level_t { COMPRESS_GUARD = INT_MAX, /* ensure that sizeof(compression_level_t) == sizeof(int) */ } compression_level_t; -#endif +STATIC_ASSERT(sizeof(compression_level_t) == sizeof(int), "compression_level_t has invalid size"); + +#endif // TINC_COMPRESSION_H