Skip site navigation (1) Skip section navigation (2)

Re: CVS Commit by andreas: Fix reading/writing bool config values

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: <pgadmin-hackers(at)postgresql(dot)org>,"Andreas Pflug" <pgadmin(at)pse-consulting(dot)de>
Subject: Re: CVS Commit by andreas: Fix reading/writing bool config values
Date: 2005-03-29 19:26:39
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E472BDDD@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgadmin-hackers
 

> -----Original Message-----
> From: pgadmin-hackers-owner(at)postgresql(dot)org 
> [mailto:pgadmin-hackers-owner(at)postgresql(dot)org] On Behalf Of 
> cvs(at)developer(dot)pgadmin(dot)org
> Sent: 29 March 2005 18:43
> To: pgadmin-hackers(at)postgresql(dot)org
> Subject: [pgadmin-hackers] CVS Commit by andreas: Fix 
> reading/writing bool config values
> 
> Log Message:
> -----------
> Fix reading/writing bool config values
> 
> Modified Files:
> --------------
>     pgadmin3/src/include:
>         sysSettings.h (r1.37 -> r1.38)
>     pgadmin3/src/ui:
>         frmMain.cpp (r1.124 -> r1.125)
>     pgadmin3/src/utils:
>         sysSettings.cpp (r1.69 -> r1.70)

Oops. This seems to break things somewhat on win32:

sysSettings.cpp
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(162) : warning C4800:
'unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(164) : warning C4800:
'unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(170) : warning C4800:
'unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(173) : warning C4800:
'unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(176) : warning C4800:
'unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(185) : warning C4800:
'const unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
Generating Code...
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\sysSettings.cpp(211) : error C4716:
'sysSettings::Write' : must return a value
Compiling...
update.cpp
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\utils\update.cpp(54) : warning C4800: 'const
unsigned short *' : forcing value to bool 'true' or 'false' (performance
warning)
dlgAggregate.cpp

...
...

frmHint.cpp
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\ui\frmHint.cpp(126) : warning C4800:
'unsigned short *' : forcing value to bool 'true' or 'false'
(performance warning)
C:\Documents and Settings\dpage\My
Documents\CVS\pgadmin3\src\ui\frmHint.cpp(145) : warning C4800: 'const
unsigned short *' : forcing value to bool 'true' or 'false' (performance
warning)

Regards, Dave.

pgadmin-hackers by date

Next:From: Hiroshi SaitoDate: 2005-03-29 19:30:10
Subject: Re: Upgrade problem(Ver 1.3.0)
Previous:From: Dave PageDate: 2005-03-29 19:06:58
Subject: Re: Upgrade problem(Ver 1.3.0)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group