[vlc-commits] cache: do not use alignof on expression
Marvin Scholz
git at videolan.org
Fri Aug 14 16:03:04 CEST 2020
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Aug 7 06:43:54 2020 +0200| [548c9d3e8d9e3f00f495839af2cb056b9d7e27e9] | committer: Marvin Scholz
cache: do not use alignof on expression
Using alignof not on a type but an expression is a GNU extension and
causes the following warning:
warning: '_Alignof' applied to an expression is a GNU extension
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=548c9d3e8d9e3f00f495839af2cb056b9d7e27e9
---
src/modules/cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/cache.c b/src/modules/cache.c
index c1428bd9f5..ad2e44b548 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -218,7 +218,7 @@ static int vlc_cache_load_config(module_config_t *cfg, block_t *file)
if (cfg->list_count)
{
- LOAD_ALIGNOF(*cfg->list.i);
+ LOAD_ALIGNOF(int);
}
LOAD_ARRAY(cfg->list.i, cfg->list_count);
@@ -535,7 +535,7 @@ static int CacheSaveConfig (FILE *file, const module_config_t *cfg)
if (cfg->list_count > 0)
{
- SAVE_ALIGNOF(*cfg->list.i);
+ SAVE_ALIGNOF(int);
}
for (unsigned i = 0; i < cfg->list_count; i++)
More information about the vlc-commits
mailing list