static function XXX defined but never used?

static function XXX defined but never used?

Postby noe aburto » Tue Aug 11, 2020 8:57 pm

Saludos.

Al compilar con fwh20.06, xHarbour 1.2.3. para bcc7.4, y bcc 7.4 me carca en algunas funciones el mensaje:

static function Nx() defined but never used

Como podria resolver este error?

Gracias
Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
User avatar
noe aburto
 
Posts: 418
Joined: Wed Nov 26, 2008 6:33 pm
Location: Morelia, Mich. Mexico.

Re: static function XXX defined but never used?

Postby horacio » Tue Aug 11, 2020 10:08 pm

Hola, ese mensaje te está indicando que hay una función definida y nunca es invocada, tendrías que ajustar los warnings de xHarbour y si no elimina las funciones que no uses.

Saludos
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: static function XXX defined but never used?

Postby karinha » Tue Aug 11, 2020 11:42 pm

Como compilas?

Code: Select all  Expand view

REM xHarbour
%hdir%\bin\harbour PROPOSTA /m/n /i%fwhdir%\include;%hdir%\include;%bcdir%\include /w0 /p     >> Erro.log 2>> ERROS.LOG

REM BCC74
%bcdir%\bin\bcc32 -M -c -v -O2 -ePROPOSTA.Exe -I%hdir%\include -I%bcdir%\include PROPOSTA.C   >> Erro.log 2>> ERROS.LOG
 


Saludos
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: static function XXX defined but never used?

Postby nageswaragunupudi » Wed Aug 12, 2020 4:26 am

xHarbour generates warning in such cases, but not Harbour.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: static function XXX defined but never used?

Postby Enrico Maria Giordano » Wed Aug 12, 2020 3:39 pm

This is not true:

Code: Select all  Expand view
xHarbour 1.2.3 Intl. (SimpLex) (Build 20200311)
Copyright 1999-2020, http://www.xharbour.org http://www.harbour-project.org/
test.prg(10) Warning W0030  STATIC Function 'TEST' defined but never used


Code: Select all  Expand view
Harbour 3.2.0dev (r2002240732)
Copyright (c) 1999-2020, https://harbour.github.io/
test.prg(10) Warning W0034  STATIC Function 'TEST' defined but never used


Anyway, in both cases the EXE is properly build.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8709
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 44 guests

cron