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


Fixes compile with Bison 2.5 and Gcc 4.5.3 for LibO 3.4 RC2.

libreoffice-libs-core-3.4.0.2 requires patch to compile with Bison 2.5 and Gcc
4.5.3.

Basically the compiler errors when it fails to convert a const sal_Char* to a
sal_Char *.

The patch changes the prototype of the error printing function to const
sal_Char*.


--- ./connectivity/inc/connectivity/sqlparse.hxx.orig   2011-05-19 04:27:40.000000000 -0600
+++ ./connectivity/inc/connectivity/sqlparse.hxx        2011-05-29 03:31:51.215723596 -0600
@@ -232,7 +232,7 @@ namespace connectivity
         // returns the type for a parameter in a given function name
         static sal_Int32 getFunctionParameterType(sal_uInt32 _nTokenId,sal_uInt32 _nPos);

-        void error(sal_Char *fmt);
+        void error(const sal_Char *fmt);
         int SQLlex();
 #ifdef YYBISON
         void setParseTree(OSQLParseNode * pNewParseTree);
--- ./connectivity/source/parse/sqlbison.y.orig 2011-05-19 04:27:40.000000000 -0600
+++ ./connectivity/source/parse/sqlbison.y      2011-05-29 03:38:18.652924536 -0600
@@ -4333,7 +4333,7 @@ void OSQLParser::reduceLiteral(OSQLParse
 }

 // -------------------------------------------------------------------------
-void OSQLParser::error(sal_Char *fmt)
+void OSQLParser::error(const sal_Char *fmt)
 {
        if(!m_sErrorMessage.getLength())
        {


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.