[xml] Do we need to be concerned about cast-align warnings?



Hi all,


When compiling libxml2 for ARM, I get alot of cast-align warnings, e.g. from this line:

https://git.gnome.org/browse/libxml2/tree/encoding.c#n491.


This generates the warning message: "cast increases required alignment of target type". My question: is this something to be concerned about? What might be the consequences if someone passes a char* that is not suitably aligned for casting to a (short*)?


Cheers

Andrew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]