Harbour warnings compling hb_rddCloseAll()

42 views
Skip to first unread message

Itamar Lins

unread,
Jan 18, 2023, 5:33:42 PM1/18/23
to Harbour Users
Hi!
...
gcc  -I. -I../../../../../include -W -Wall -O3   -owacore.o  -c ../../../wacore.c
../../../wacore.c: In function ‘hb_rddCloseAll’:
../../../wacore.c:62:66: warning: array subscript 0 is outside array bounds of ‘HB_USHORT[0]’ {aka ‘short unsigned int[]’} [-Warray-b
ounds]
  62 |                                pRddInfo->waList[ pRddInfo->waNums[ pRddInfo->uiCurrArea ] ] : \
     |                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../../../wacore.c:300:7: note: in expansion of macro ‘HB_SET_WA
 300 |       HB_SET_WA( 1 );
     |       ^~~~~~~~~
gcc  -I. -I../../../../../include -W -Wall -O3   -owacore_dyn.o -DHB_DYNLIB -fPIC  -c ../../../wacore.c
../../../wacore.c: In function ‘hb_rddCloseAll’:
../../../wacore.c:62:66: warning: array subscript 0 is outside array bounds of ‘HB_USHORT[0]’ {aka ‘short unsigned int[]’} [-Warray-b
ounds]
  62 |                                pRddInfo->waList[ pRddInfo->waNums[ pRddInfo->uiCurrArea ] ] : \
     |                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../../../wacore.c:300:7: note: in expansion of macro ‘HB_SET_WA
 300 |       HB_SET_WA( 1 );
     |       ^~~~~~~~~
gcc  -I. -I../../../../../include -W -Wall -O3   -owafunc.o  -c ../../../wafunc.c
gcc
...

itamar@itamar-desktop:~/dev/hb32$ harbour -build
Harbour 3.2.0dev (r2301171010)
Copyright (c) 1999-2021, https://harbour.github.io/

Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r2301171010)
Compiler: GNU C 12.2 (64-bit)
Platform: Linux 5.19.0-30-generic x86_64
PCode version: 0.3
ChangeLog last entry: 2023-01-17 13:10 UTC-0300 Lailton Fernando Mariano (lailton/at/paysoft.com.br)
ChangeLog ID: aa441e6f3396894228e0206b173abbfe8f2b8d9a
Built on: Jan 18 2023 19:17:39
Build options: (Clipper 5.3b) (Clipper 5.x undoc)  
---------------------------

Best regards,
Itamar M. Lins Jr.
Reply all
Reply to author
Forward
0 new messages