tengo el siguiente fuente ( es antiguo )
function main()
聽 聽 聽 聽 聽 聽 ?SPU_9 ( '1600167793' )
聽 聽 聽 聽 return nil
聽 聽 聽 聽 /***********************************************
聽 聽 聽 聽 ***********************************************/
聽 聽 聽 聽 FUNCTION SPU_9 ( AV_RUC_NUE )
聽 聽 聽 聽 LOCAL LV_RUC_NUE 聽 聽:= AV_RUC_NUE
聽 聽 聽 聽 LOCAL LL_UNO 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 1, 1))
聽 聽 聽 聽 LOCAL LL_DOS 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 2, 1))
聽 聽 聽 聽 LOCAL LL_TRE 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 3, 1))
聽 聽 聽 聽 LOCAL LL_CUA 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 4, 1))
聽 聽 聽 聽 LOCAL LL_CIN 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 5, 1))
聽 聽 聽 聽 LOCAL LL_SEI 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 6, 1))
聽 聽 聽 聽 LOCAL LL_SIE 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 7, 1))
聽 聽 聽 聽 LOCAL LL_OCH 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 8, 1))
聽 聽 聽 聽 LOCAL LL_NUE 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 9, 1))
聽 聽 聽 聽 LOCAL LL_DIE 聽 聽 聽 聽:= VAL(SUBSTR(LV_RUC_NUE, 10, 1))
聽 聽 聽 聽 LOCAL nSum 聽 聽 聽 聽 聽:= LL_UNO*4+LL_DOS*3+LL_TRE*2+LL_CUA*7+LL_CIN*6+LL_SEI*5+LL_SIE*4+LL_OCH*3+LL_NUE*2
聽 聽 聽 聽 LOCAL LL_DVERR2
聽 聽 聽 聽 聽 聽 DO WHILE nSum>11
聽 聽 聽 聽 聽 聽 聽 聽 nSum = nSum-11
聽 聽 聽 聽 聽 聽 ENDDO
聽 聽 聽 聽 聽 聽 LL_DVERR2 = 11-nSum
聽 聽 聽 聽 聽 聽 IF ( LL_DVERR2 == 10 )
聽 聽 聽 聽 聽 聽 聽 聽 LL_DVERR2 = 0
聽 聽 聽 聽 聽 聽 聽 聽 RETURN .F.
聽 聽 聽 聽 聽 聽 ELSE
聽 聽 聽 聽 聽 聽 聽 聽 IF (LL_DVERR2<>LL_DIE)
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 RETURN .F.
聽 聽 聽 聽 聽 聽 聽 聽 ELSE
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 RETURN .T.
聽 聽 聽 聽 聽 聽 聽 聽 ENDIF
聽 聽 聽 聽 聽 聽 ENDIF
聽 聽 聽 聽 RETURN .T.al compilar con hbmk2 asi
hbmk2 p.prg -w3 -es2 -l
me salen este error
Harbour 3.2.0dev (r2002101434)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'p.prg'...
p.prg(41) Warning W0032 聽Variable 'LL_DVERR2' is assigned but not used in functi
on 'SPU_9(0)'
No code generated.
hbmk2: Error: Running Harbour compiler (built-in). 1
(c:\hb32\bin\harbour.exe) -n2 p.prg -w3 -es2 -l -oC:\Users\wilson\AppData\Local\
Temp\hbmk_pc1zqw.dir\ -ic:\hb32\includenecesito compilar con esa severidad estoy incluyendo funciones en HBNETIO alguien me puede sacar de esta duda porque la variable LL_DVERR2 me dice que no la uso pero si interviene en el codigo
gracias por adelantado
Wilson.josenet@gmail.com