The following sample

DOTEST.PRG:

FUNCTION MAIN()

    DO DOTEST2

    RETURN NIL


DOTEST2.PRG:

FUNCTION DOTEST2()

    ? "TEST"

    INKEY( 0 )

    RETURN NIL

works fine in Clipper and Harbour. In xHarbour I get

DOTEST2.prg(1) Warning W0028  Unreachable code
DOTEST2.prg(1) Warning W0007  Function 'MAIN' does not end with RETURN 
statement

I already remove /m compiler switch.

EMG

--
EMAG Software Homepage:     http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page:         http://www.emagsoftware.it/emgmusic 


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to