util: reinstate ENUM_PACKED

gets rid of warning: 'gcc_struct' attribute ignored [-Wattributes] introduced by !23338

Fixes: 86532fa21d ("util: Use the gcc_struct attribute for packed structures in mingw")
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23478>
This commit is contained in:
Michel Zou
2023-06-06 21:18:17 +02:00
committed by Marge Bot
parent 4b48d377ba
commit badb85edb8
12 changed files with 41 additions and 38 deletions
+2
View File
@@ -209,8 +209,10 @@ do { \
# else
# define PACKED __attribute__((__packed__))
# endif
# define ENUM_PACKED __attribute__((packed))
#else
#define PACKED
#define ENUM_PACKED
#endif
/* Attribute pure is used for functions that have no effects other than their