Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Hackers > Re: New problem...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 13 Topic 4508 of 4818
Post > Topic >>

Re: New problem with the latest Kubuntu

by dpage@[EMAIL PROTECTED] ("Dave Page") May 1, 2008 at 03:30 PM

On Thu, May 1, 2008 at 2:10 PM, Guillaume Lelarge
<guillaume@[EMAIL PROTECTED]
> wrote:
> Hi,
>
>  Subject is not really true :) With the latest Kubuntu, I got the latest
gcc
> release. Now, when I compile pgAdmin3 from sources, I get a whole bunch
of
> warning messages:
>
>  ../pgadmin/include/images/splash.xpm:603: warning : deprecated
conversion
> from string constant to "char*"
>
>  It seems the new (4.2.3) gcc/g++ release throws this kind of warning
> messages. In fact, a lot of them. Something between 24,000 and 25,000
> warnings for pgAdmin3 trunk sources. Compile is finally successful, but
I
> would prefer to be able to get these warnings out.
>
>  So, I tried to get a look at it. Using "const char*" instead of "char*"
> seems to fix the issue, but this is getting bigger and bigger. All "char
*"
> variables should be replaced, but also every functions/methods
declarations
> using char* should be replaced with "const char*". And I think wxChar*
will
> also need some tweaking.
>
>  My C/C++ knowledge is not really helpful here and I will need advice
from
> my fellow hackers :) Is this the right move ? or am I completely wrong ?
If
> I came up with such a big patch, will it be reviewed for inclusion ?
>
>  Thanks for any tips/comments.

Hmm, well technically that is correct of course - they are const char
*'s. My main concern about changing them is that the XPM files are a
standard format, so any changes are likely to get overwritten if
images are changed, or forgotten in new images. That said, different
apps use different var names in them anyway, so we often do have to
manually edit them.

As I see it we have three choices:

- Try using extern c on them (a suggestion from Greg Stark, though we
think that only affects linkage).
- Silence the warning on the GCC command line.
- Fix them.

I'm leaning towards fixing them to be honest.

-- 
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
 




 13 Posts in Topic:
New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-01 15:10:34 
Re: New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-01 15:21:43 
Re: New problem with the latest Kubuntu
dpage@[EMAIL PROTECTED]   2008-05-01 15:30:57 
Re: New problem with the latest Kubuntu
dpage@[EMAIL PROTECTED]   2008-05-01 16:19:01 
Re: New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-01 17:25:25 
Re: New problem with the latest Kubuntu
dpage@[EMAIL PROTECTED]   2008-05-01 16:27:22 
Re: New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-01 18:27:02 
Re: New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-01 22:54:26 
Re: New problem with the latest Kubuntu
dpage@[EMAIL PROTECTED]   2008-05-02 08:49:11 
Re: New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-02 11:19:05 
Re: New problem with the latest Kubuntu
dpage@[EMAIL PROTECTED]   2008-05-02 10:27:22 
Re: New problem with the latest Kubuntu
guillaume@[EMAIL PROTECTE  2008-05-02 11:41:23 
Re: New problem with the latest Kubuntu
dpage@[EMAIL PROTECTED]   2008-05-02 10:56:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 6:17:31 CDT 2008.