static function XXX defined but never used?

Post Reply
User avatar
noe aburto
Posts: 420
Joined: Wed Nov 26, 2008 6:33 pm
Location: Morelia, Mich. Mexico.

static function XXX defined but never used?

Post by noe aburto »

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
horacio
Posts: 1270
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: static function XXX defined but never used?

Post by horacio »

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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: static function XXX defined but never used?

Post by karinha »

Como compilas?

Code: Select all

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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: static function XXX defined but never used?

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: static function XXX defined but never used?

Post by Enrico Maria Giordano »

This is not true:

Code: Select all

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

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
Post Reply