[Harbour] Warnings

2010-04-15 Thread Enrico Maria Giordano
I get a lot of warnings building latest Harbour from SVN. Do I have to report all of them or they are expected? EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tb

Re: [Harbour] Warnings in current code

2010-03-26 Thread Viktor Szakáts
>> Pls just delete this function, the low-level API >> is deprecated (I assume since long years), so it's >> not worth to spend much time on it, and maybe it >> cannot even be fixed since the API may just be >> wrongly designed. > > OK, thank you for the info. > I'll do that in next commit. T

Re: [Harbour] Warnings in current code

2010-03-26 Thread Przemysław Czerpak
On Fri, 26 Mar 2010, Szak�ts Viktor wrote: Hi, > Pls just delete this function, the low-level API > is deprecated (I assume since long years), so it's > not worth to spend much time on it, and maybe it > cannot even be fixed since the API may just be > wrongly designed. OK, thank you for the

Re: [Harbour] Warnings in current code

2010-03-26 Thread Viktor Szakáts
Hi, > This warning is generated for hbpgsql library: > > ../../../postgres.c: In function ‘HB_FUN_PQESCAPEBYTEA’: > ../../../postgres.c:816: warning: dereferencing type-punned pointer will > break strict-aliasing rules > > This is real bug and definitely has to be fixed, it passes pointer > to

[Harbour] Warnings in current code

2010-03-26 Thread Przemysław Czerpak
Hi, This warning is generated for hbpgsql library: ../../../postgres.c: In function ‘HB_FUN_PQESCAPEBYTEA’: ../../../postgres.c:816: warning: dereferencing type-punned pointer will break strict-aliasing rules This is real bug and definitely has to be fixed, it passes pointer to HB_SIZE casted t

Re: [Harbour] Warnings

2010-03-03 Thread Viktor Szakáts
> Warning W8012 ../../../hbeditc.c 961: Comparing signed and unsigned values in > function HB_FUN_ED_STABILIZE > Warning W8012 ../../../hbeditc.c 1627: Comparing signed and unsigned values > in function End > Warning W8012 ../../../hbeditc.c 1640: Comparing signed and unsigned values > in functi

[Harbour] Warnings

2010-03-03 Thread Enrico Maria Giordano
Warning W8012 ../../../hbeditc.c 961: Comparing signed and unsigned values in function HB_FUN_ED_STABILIZE Warning W8012 ../../../hbeditc.c 1627: Comparing signed and unsigned values in function End Warning W8012 ../../../hbeditc.c 1640: Comparing signed and unsigned values in function End Warni

[Harbour] Warnings

2010-01-26 Thread Enrico Maria Giordano
Warning W8004 ../../../win_bmpd.c 142: 'nPos' is assigned a value that is never used in function hb_jpeg_get_param Warning W8004 ../../../win_bmpd.c 84: 'bpc' is assigned a value that is never used in function hb_jpeg_get_param Warning W8004 ../../../win_bmpd.c 83: 'colorspace' is assigned a valu

[Harbour] Warnings

2010-01-21 Thread Enrico Maria Giordano
Warning W8060 ../../../wapi_wingdi.c 362: Possibly incorrect assignment in function HB_FUN_WAPI_SELECTOBJECT Warning W8060 ../../../wapi_wingdi.c 363: Possibly incorrect assignment in function HB_FUN_WAPI_SELECTOBJECT EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-S

Re: [Harbour] Warnings in $Id: ChangeLog 13347 2009-12-21 21:34:12Z vszakats $

2009-12-21 Thread April White
Enrico Maria Giordano wrote: Warning W8004 ../../../hb_btree.c 620: 'pHeader' is assigned a value that is never used in function HeaderWrite Warning W8004 ../../../hb_btree.c 1619: 'pHeader' is assigned a value that is never used in function hb_BTreeOpen I've tried to find the gcc flag (cc (GC

[Harbour] Warnings in $Id: ChangeLog 13347 2009-12-21 21:34:12Z vszakats $

2009-12-21 Thread Enrico Maria Giordano
Warning W8004 ../../../hb_btree.c 620: 'pHeader' is assigned a value that is never used in function HeaderWrite Warning W8004 ../../../hb_btree.c 1619: 'pHeader' is assigned a value that is never used in function hb_BTreeOpen EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EM

[Harbour] Warnings building Harbour for Msvc2008

2009-12-20 Thread José Luis Capel ~ CapelSoft
Hi, After a clean build I have lots of warnings like this one: ../../../gencc.c(656) : warning C4244: '=' : conversi¢n de 'size_t' a 'USHORT'; posible p,rdida de datos ../../../gencc.c(808) : warning C4244: '=' : conversi¢n de 'size_t' a 'USHORT'; posible p,rdida de datos and more. Attached r

[Harbour] Warnings and errors in latest SVN

2009-12-07 Thread Enrico Maria Giordano
Warning W8065 ../../../wapi_shellapi.c 71: Call to function 'hb_setGetOSCP' with no prototype in function HB_FUN_WAPI_SHELLEXECUTE Error E2342 ../../../wapi_shellapi.c 71: Type mismatch in parameter 'cdp' (wanted 'void *', got 'int') in function HB_FUN_WAPI_SHELLEXECUTE Warning W8065 ../../../wap

[Harbour] Warnings

2009-09-12 Thread Enrico Maria Giordano
Warning W8004 ../../../win_com.c 678: 'hCommPort' is assigned a value that is never used in function HB_FUN_WIN_COMSETTIMEOUTS Warning W8004 ../../../win_com.c 699: 'hCommPort' is assigned a value that is never used in function HB_FUN_WIN_COMSETQUEUESIZE EMG -- EMAG Software Homepage: http

Re: [Harbour] Warnings with msvc.

2009-08-17 Thread Viktor Szakáts
On Mon, 17 Aug 2009, Lautaro Moreira wrote: Hi ! I have the same warnings. This is normal ??? Yes it is. I hope that Viktor reduce warning level before someone starts mechanical warning cleanup hiding real bugs and introducing very serious problem for types modification in the future. A ra

Re: [Harbour] Warnings with msvc.

2009-08-17 Thread Lautaro Moreira
Ok, Thanks for your answer. Atte., Lautaro Przemyslaw Czerpak escribió: On Mon, 17 Aug 2009, Lautaro Moreira wrote: Hi ! I have the same warnings. This is normal ??? Yes it is. I hope that Viktor reduce warning level before someone starts mechanical warning cleanup hiding real bugs

Re: [Harbour] Warnings with msvc.

2009-08-17 Thread Przemyslaw Czerpak
On Mon, 17 Aug 2009, Lautaro Moreira wrote: > Hi ! > I have the same warnings. > This is normal ??? Yes it is. I hope that Viktor reduce warning level before someone starts mechanical warning cleanup hiding real bugs and introducing very serious problem for types modification in the future. best

Re: [Harbour] Warnings with msvc.

2009-08-17 Thread Lautaro Moreira
Hi ! I have the same warnings. This is normal ??? Atte., Lautaro Itamar Lins escribió: Hi! This is normal ? ! MAKE: mingw32-make 3.81 sh.exe ! HB_INSTALL_PREFIX: D:\DEV\HARBOUR ! HB_HOST_ARCH: win HB_SHELL: nt ! HB_ARCHITECTURE: win (autodetected) ! HB_COMPILER: msvc ../../../expropt2.

[Harbour] Warnings with msvc.

2009-08-17 Thread Itamar Lins
Hi! This is normal ? ! MAKE: mingw32-make 3.81 sh.exe ! HB_INSTALL_PREFIX: D:\DEV\HARBOUR ! HB_HOST_ARCH: win HB_SHELL: nt ! HB_ARCHITECTURE: win (autodetected) ! HB_COMPILER: msvc ../../../expropt2.c(557) : warning C4244: '=' : conversion from 'HB_LONG' to 'long', possible loss of data ../.

Re: [Harbour] Warnings

2009-08-10 Thread Grigory Filatov
Hi Enrico Maria, I confirm these warnings too. :-( It seems that missing casting in the include\hbatomic.h. Try to change the following lines: /* Spin locks */ # if !defined( HB_SPINLOCK_T ) # define HB_SPINLOCK_T volatile LONG # define HB_SPINLOCK_INIT 0 # defi

[Harbour] Warnings

2009-08-10 Thread Enrico Maria Giordano
Warning W8075 ../../../../garbage.c 220: Suspicious pointer conversion in function hb_gcAlloc Warning W8075 ../../../../garbage.c 220: Suspicious pointer conversion in function hb_gcAlloc Warning W8075 ../../../../garbage.c 249: Suspicious pointer conversion in function hb_gcFree Warning W8075 .

[Harbour] Warnings at Harbour BCC creating

2009-08-10 Thread Grigory Filatov
Hello All, There are warnings at BCC Harbour build after change below: 2009-08-10 11:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbatomic.h % added architecture independent support for atomic operations and spinlocks in all SunOS builds It seems that mi

Re: [Harbour] Warnings in Linux build

2009-07-15 Thread Viktor Szakáts
It signals wrong host detection which may well be, and that's exactly why I left the message there. Pls try after Przemek's recent additions. Brgds, Viktor On 2009.07.15., at 8:10, Lorenzo Fiorini wrote: Now I see many: ... Detected host binary extension: .exe Detected host platform: dos ...

Re: [Harbour] Warnings in Linux build

2009-07-15 Thread Przemyslaw Czerpak
On Wed, 15 Jul 2009, Lorenzo Fiorini wrote: > Now I see many: > ... > Detected host binary extension: .exe > Detected host platform: dos > ... > ../../../../../config/global.cf:106: Warning: HB_BIN_COMPILE must be > specified for cross-builds. > ... > during ./make_gnu.sh build under Ubuntu 9.04 x8

[Harbour] Warnings in Linux build

2009-07-15 Thread Lorenzo Fiorini
Now I see many: ... Detected host binary extension: .exe Detected host platform: dos ... ../../../../../config/global.cf:106: Warning: HB_BIN_COMPILE must be specified for cross-builds. ... during ./make_gnu.sh build under Ubuntu 9.04 x86. Is it expected? best regards, Lorenzo _

[Harbour] Warnings

2009-06-25 Thread Enrico Maria Giordano
Warning W8075 ../../hbcmplib.c 97: Suspicious pointer conversion in function hb_compGenArgList Warning W8075 ../../hbcmplib.c 101: Suspicious pointer conversion in function hb_compGenArgList Warning W8075 ../../ampm.c 64: Suspicious pointer conversion in function HB_FUN_AMPM Warning W8075 ..

[Harbour] Warnings

2009-03-06 Thread Enrico Maria Giordano
Warning W8084 ../../wapi_commctrl.c 645: Suggest parentheses to clarify precedence in function HB_FUN_WAPI_TABCTRL_SETITEMSIZE Warning W8084 ../../wapi_commctrl.c 661: Suggest parentheses to clarify precedence in function HB_FUN_WAPI_TABCTRL_SETPADDING Warning W8084 ../../wapi_commctrl.c 720: Sug

Re: [Harbour] Warnings

2009-03-02 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "Viktor Szakáts" A: "Harbour Project Main Developer List." Data invio: lunedì 2 marzo 2009 15.44 Oggetto: Re: [Harbour] Warnings I've committed it already, please verify it. Yes, all warnings fixed, thank you. EMG -- EMAG So

Re: [Harbour] Warnings

2009-03-02 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "Pritpal Bedi" A: Data invio: lunedì 2 marzo 2009 15.36 Oggetto: Re: [Harbour] Warnings > Warning W8084 ../../gtwvg.c 2369: Suggest parentheses to clarify > precedence > in function hb_gt_wvt_CreateWindow Fixed. But not committed yet

Re: [Harbour] Warnings

2009-03-02 Thread Viktor Szakáts
I've committed it already, please verify it. Brgds, Viktor On Mon, Mar 2, 2009 at 3:36 PM, Pritpal Bedi wrote: > > Hi > > > Enrico Maria Giordano wrote: > > > > Warning W8084 ../../gtwvg.c 2369: Suggest parentheses to clarify > > precedence > > in function hb_gt_wvt_CreateWindow > > > > Fixed. Bu

Re: [Harbour] Warnings

2009-03-02 Thread Pritpal Bedi
Hi Enrico Maria Giordano wrote: > > Warning W8084 ../../gtwvg.c 2369: Suggest parentheses to clarify > precedence > in function hb_gt_wvt_CreateWindow > Fixed. But not committed yet. Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/Warnings-tp22285307p22289267.

[Harbour] Warnings

2009-03-02 Thread Enrico Maria Giordano
Warning W8084 ../../gtwvg.c 2369: Suggest parentheses to clarify precedence in function hb_gt_wvt_CreateWindow ./../regexrpl.prg(96) Warning W0032 Variable 'NEND' is assigned but not used in function 'HB_REGEXREPLACE(0)' EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG'

[Harbour] Warnings

2008-12-20 Thread Enrico Maria Giordano
gtwvg: \wvgclass.prg(328) Warning W0032 Variable 'N' assigned but not used in function 'WVTDIALOG_CREATE(0)' \wvgclass.prg(2662) Warning W0032 Variable 'NNEWPOS' assigned but not used in function 'WVTSCROLLBAR_THUMBPOS(0)' hbwhat: Warning W8084 .\whtcomm.c 189: Suggest parentheses to clarif

[Harbour] Warnings in hbwhat contrib

2008-11-24 Thread Enrico Maria Giordano
Warning W8084 .\whtcomm.c 189: Suggest parentheses to clarify precedence in function HB_FUN_VWN_CREATEPROGRESSBAR Warning W8084 .\whtcomm.c 381: Suggest parentheses to clarify precedence in function HB_FUN_VWN_LISTVIEW_GETFIRSTITEM Warning W8084 .\whthead.c 351: Suggest parentheses to clarify p

[Harbour] Warnings with Ubuntu's gcc 4.3.2

2008-11-16 Thread Lorenzo Fiorini
Just to report that ./make_gnu.sh 2>err.log Harbour 1.0.1 on Ubuntu 8.10 I get: In file included from ../../hbpp.c:55: ../../ppcore.c: In function 'hb_pp_dumpEnd': ../../ppcore.c:842: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result ../../ppcore.c: In function

[Harbour] Warnings under Ubuntu 8.04 gcc 4.2.3

2008-10-05 Thread Lorenzo Fiorini
I'm building svn 9548 under Ubuntu 8.04 i386 using gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) and I get: ../../ppcore.c: In function 'hb_pp_tokenFree': ../../ppcore.c:369: warning: passing argument 1 of 'hb_xfree' discards qualifiers from pointer target type ../../ppcore.c: In function 'hb_pp_opera

[Harbour] Warnings

2008-09-22 Thread Enrico Maria Giordano
Warning W8012 source\vm\classes.c 4526: Comparing signed and unsigned values in function HB_FUN___CLSPREALLOCATE Warning W8012 source\rdd\workarea.c 2235: Comparing signed and unsigned values in function HB_FUN___RDDPREALLOCATE EMG -- EMAG Software Homepage: http://www.emagsoftware.it Th

Re: [Harbour] Warnings with new alloc

2008-09-18 Thread Szakáts Viktor
Hi Przemek and all, I'm getting these warnings for the malloc code FYI: [ It may be enough to suppress them, like we do for sqlite3, at least for these compilers. ] Please try to compiler current sqlite3 without any #pragma. I cleaned nearly all standard warnings for GCC/G++ builds. Okay, I'

Re: [Harbour] Warnings with new alloc

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, > I'm getting these warnings for the malloc code FYI: > [ It may be enough to suppress them, like we do for > sqlite3, at least for these compilers. ] Please try to compiler current sqlite3 without any #pragma. I cleaned nearly all standard w

[Harbour] Warnings with new alloc

2008-09-18 Thread Szakáts Viktor
Hi Przemek, I'm getting these warnings for the malloc code FYI: [ It may be enough to suppress them, like we do for sqlite3, at least for these compilers. ] MSVS 2008: c:\work\harbour\harbour\source\vm\dlmalloc.c(675) : warning C4565: 'malloc' : redefinition; the symbol was previously declared

[Harbour] Warnings

2008-06-17 Thread Enrico Maria Giordano
Warning W8075 source\rtl\gtclip.c 112: Suspicious pointer conversion in function hb_gt_w32_setClipboard Warning W8075 source\rtl\gtclip.c 146: Suspicious pointer conversion in function hb_gt_w32_getClipboard Warning W8075 source\rtl\gtclip.c 148: Suspicious pointer conversion in function hb_gt_w

Re: [Harbour] Warnings

2008-06-11 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "Szakáts Viktor" <[EMAIL PROTECTED]> A: "Harbour Project Main Developer List." Data invio: mercoledì 11 giugno 2008 14.49 Oggetto: Re: [Harbour] Warnings Hi EMG, I'm planning to commit some changes to this file, which will a

Re: [Harbour] Warnings

2008-06-11 Thread Szakáts Viktor
Hi EMG, I'm planning to commit some changes to this file, which will also fix these warnings. Brgds, Viktor On 2008.06.11., at 14:19, Enrico Maria Giordano wrote: Warning W8004 source\rtl\gtwvt\gtwvt.c 529: 'height' is assigned a value that is never used in function hb_gt_wvt_FitSize Warning

[Harbour] Warnings

2008-06-11 Thread Enrico Maria Giordano
Warning W8004 source\rtl\gtwvt\gtwvt.c 529: 'height' is assigned a value that is never used in function hb_gt_wvt_FitSize Warning W8004 source\rtl\gtwvt\gtwvt.c 528: 'width' is assigned a value that is never used in function hb_gt_wvt_FitSize EMG -- EMAG Software Homepage: http://www.emags