List:MySQL++« Previous MessageNext Message »
From:Ina J. Date:October 27 2011 5:41am
Subject:Re: warning: type qualifiers ignored on function return type with
sql_create_# every time
View as plain text  
Gee thanks!

So little change and so much help. Now the warnings are gone.
Thanks again Adrian.

-Ina

2011/10/26 Adrian Cornish <mysql@stripped>

> On Tue, Oct 25, 2011 at 4:23 AM, Ina J. <inarvaj@stripped> wrote:
>
>> So how can I avoid these warnings, if I can't add a compile parameter,
>> which
>> ignores them??
>>
>
> Hi Ina,
>
> You can compile with "-Wno-ignored-qualifiers"  flag or apply the patch
> below to the source and rebuild mysqlpp
>
> This really annoys me too - I keep fixing this in my copy of mysqlpp and
> keep forgetting to submit the patch - so here it is.
>
> Warren - please could you include this fix to ssqls.pl
>
>
> Adiran
> Index: lib/ssqls.pl
> ===================================================================
> --- lib/ssqls.pl        (revision 2698)
> +++ lib/ssqls.pl        (working copy)
> @@ -500,7 +500,7 @@
>         sql_construct_define_##CONTR(NAME, $parmC)
>         static const char* names[];
>         static void table(const char* t) { table_ = t; }
> -       const char* const table() const
> +       const char* table() const
>                         { return table_override_ ? table_override_ :
> NAME::table_; }
>         void instance_table(const char* t) { table_override_ = t; }
>
>
>
>

Thread
warning: type qualifiers ignored on function return type withsql_create_# every timeIna J.25 Oct
  • Re: warning: type qualifiers ignored on function return type withsql_create_# every timeAdrian Cornish26 Oct
    • Re: warning: type qualifiers ignored on function return type withsql_create_# every timeIna J.27 Oct
    • Re: warning: type qualifiers ignored on function return type with sql_create_# every timeWarren Young27 Oct