[vlc-commits] misc: ensure vlc_object_t is correctly aligned
Rémi Denis-Courmont
git at videolan.org
Wed Jul 26 16:51:53 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 26 17:50:24 2017 +0300| [94d8e0b9c1a27db4589d356ec11825934af80549] | committer: Rémi Denis-Courmont
misc: ensure vlc_object_t is correctly aligned
See also 4f91e6bc15d8b72deb1f761ca857a33d672c91ef.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94d8e0b9c1a27db4589d356ec11825934af80549
---
src/misc/variables.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/misc/variables.h b/src/misc/variables.h
index 38af8635a2..dccd96bcb3 100644
--- a/src/misc/variables.h
+++ b/src/misc/variables.h
@@ -23,6 +23,7 @@
#ifndef LIBVLC_VARIABLES_H
# define LIBVLC_VARIABLES_H 1
+# include <stdalign.h>
# include <vlc_atomic.h>
struct vlc_res;
@@ -34,6 +35,7 @@ typedef struct vlc_object_internals vlc_object_internals_t;
struct vlc_object_internals
{
+ alignas (max_align_t) /* ensure vlc_externals() is maximally aligned */
char *psz_name; /* given name */
/* Object variables */
More information about the vlc-commits
mailing list