FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour errorsysw.prg
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
errorsysw.prg
Posted: Fri Oct 15, 2010 08:59 AM

When I compile errorsysw.prg
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6703)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
errsysw.prg(377) Warning W0028 Unreachable code
0 error

here the piece of code

363 static function DoBreak()
364
365 BREAK
366
377 return nil

I compile with these parameters

SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w2 /wb-
I modified errorsysw.prg with these simple controls

IF M->cUte_dos <> NIL
cErrorFile := M->cUte_dos + "_error.log"
ELSE
cErrorFile := "error.log"
ENDIF

MemoWrit( cErrorFile, cErrorLog )

Marco Boschi
info@marcoboschi.it
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: errorsysw.prg
Posted: Sun Oct 17, 2010 08:43 PM

Marco

change /w2 by /w

Continue the discussion