Page 1 of 1

static function XXX defined but never used?

Posted: Tue Aug 11, 2020 8:57 pm
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

Re: static function XXX defined but never used?

Posted: Tue Aug 11, 2020 10:08 pm
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

Re: static function XXX defined but never used?

Posted: Tue Aug 11, 2020 11:42 pm
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

Re: static function XXX defined but never used?

Posted: Wed Aug 12, 2020 4:26 am
by nageswaragunupudi
xHarbour generates warning in such cases, but not Harbour.

Re: static function XXX defined but never used?

Posted: Wed Aug 12, 2020 3:39 pm
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