• Show log

    Commit

  • Hash : 8d05bf7d
    Author : Behdad Esfahbod
    Date : 2019-01-22T12:34:05

    Fix cast-align error
    
    If compiler doesn't inline StructAtOffset, this was an error since we
    only disable cast-align at call-site.  So, move the cast out.
    
    ../src/hb-machinery.hh: In instantiation of 'const Type& StructAtOffset(const void*, unsigned int) [with Type = unsigned int]':
    ../src/hb-font.cc:146:85:   required from here
    ../src/hb-machinery.hh:63:12: error: cast from 'const char*' to 'const unsigned int*' increases required alignment of target type [-Werror=cast-align]
     { return * reinterpret_cast<const Type*> ((const char *) P + offset); }
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../src/hb-machinery.hh: In instantiation of 'Type& StructAtOffset(void*, unsigned int) [with Type = unsigned int]':
    ../src/hb-font.cc:147:79:   required from here
    ../src/hb-machinery.hh:66:12: error: cast from 'char*' to 'unsigned int*' increases required alignment of target type [-Werror=cast-align]
     { return * reinterpret_cast<Type*> ((char *) P + offset); }
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/harfbuzz.git
    Git SSH git@git.kmx.io:kc3-lang/harfbuzz.git
    Public access ? public
    Description

    HarfBuzz text shaping engine

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags