Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Tue, 2010-12-07 at 13:04 +0000, Caolán McNamara wrote:
On Tue, 2010-12-07 at 12:53 +0000, Noel Power wrote:
presumeably RTL_CONSTASCII_USTRINGPARAM would try to take sizeof( 
ConstAsciiString )  in that case

Soon enough I'll commit in a compile time test that will catch if that
happens by accident. Though it can only be enabled with gcc 4.5.0 and
above, but I compile with that so it'll get caught if it happens.

This test has now been in for a few days. The test requires c++0x
support with a particular language defect fix implemented. So configure
checks for it and enables c++0x support if it works with gcc and in
those cases SAL_N_ELEMENTS is checked to make sure its not applied to
the wrong type of arguments, and as a side effect the STRING_CONST get
checked as well.

In practice this only happens for gcc 4.5.0 onwards, but that's the
version I have, so I'm relatively confident that any potential future
accidents will be caught.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.