[Development] cast ... increases required alignment of target type [-Werror=cast-align]

Holger Hans Peter Freyther holger at freyther.de
Wed Mar 14 21:12:32 CET 2012


On 03/07/2012 05:12 PM, Thiago Macieira wrote:
> On quarta-feira, 7 de março de 2012 19.36.17, Rohan McGovern wrote:
>> Thanks, so can we use #pragma GCC diagnostic to selectively silence
>> warnings like this?  There doesn't seem to be much precedent for it so
>> far (just one usage I can find in qatomic.h).
> 
> We can do that to silence the warning.
> 
> However, the proper solution is to redesign the function in question so that 
> the bad code never appears on it. The STL solution for this is to use tag 
> types and indirect via another function call.


Hi,

tests/auto/other/headersclean fails for MIPS due alignment warnings as well
(QList/QVector...). Is there any plan to resolve this before Qt Alpha?

regards
  holger



More information about the Development mailing list