[asterisk-dev] [Code Review] 4547: clang compiler warning: braces-around-scalar-initializer
    Tzafrir Cohen 
    tzafrir.cohen at xorcom.com
       
    Sun Mar 29 07:44:44 CDT 2015
    
    
  
On Sat, Mar 28, 2015 at 03:21:03PM -0000, Diederik de Groot wrote:
> FYI: There is one major benefit in using the named variety, namely
> allowing you to change the order of the fields in the struct without
> consequence. For example the ast_frame struct could be optimized a
> little by reordering the fields to improve packing, as in: 
Just note that such changes break the binary ABI. That is, code built
using the old header and code built using the new headers must not be
mixed. So this should not be done on a stable version. 
-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com
    
    
More information about the asterisk-dev
mailing list