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

lars.knoll at nokia.com lars.knoll at nokia.com
Wed Mar 14 22:26:21 CET 2012


On 3/14/12 9:12 PM, "ext Holger Hans Peter Freyther" <holger at freyther.de>
wrote:

>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?

Only if someone provides a patch. I won't stop the alpha because of a
header file warning.

Cheers,
Lars




More information about the Development mailing list