summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2015-10-14 02:05:54 +0300
committerOleg Oshmyan <chortos@inbox.lv>2017-10-31 13:59:11 +0200
commitfa0783fc021ccd1476b6aa2b94d9836331983caf (patch)
treecfaab684281628231b709c021a2e862751a1083f
parentf4cc39fb8e1741523aae7616a49797008c2ae1cb (diff)
downloadlibass-fa0783fc021ccd1476b6aa2b94d9836331983caf.tar.bz2
libass-fa0783fc021ccd1476b6aa2b94d9836331983caf.tar.xz
coretext: don't use a variable-length array
This fixes compilation with GCC, which complains that a variable-length array declaration must not have an initializer.
-rw-r--r--libass/ass_coretext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_coretext.c b/libass/ass_coretext.c
index aed4b02..a52ead5 100644
--- a/libass/ass_coretext.c
+++ b/libass/ass_coretext.c
@@ -232,7 +232,7 @@ static void process_descriptors(ASS_FontProvider *provider, CFArrayRef fontsd)
static void match_fonts(ASS_Library *lib, ASS_FontProvider *provider,
char *name)
{
- const size_t attributes_n = 3;
+ enum { attributes_n = 3 };
CTFontDescriptorRef ctdescrs[attributes_n];
CFMutableDictionaryRef cfattrs[attributes_n];
CFStringRef attributes[attributes_n] = {