[M3devel] order of warnings, or even to have any?

Olaf Wagner wagner at elegosoft.com
Sun May 4 13:49:37 CEST 2008


Quoting Jay <jayk123 at hotmail.com>:

> C:\dev2\cm3\m3-sys\m3tests\src\p0\p004>cm3--- building in NT386 ---
> new source -> compiling Main.m3"..\Main.m3", line 35: warning:   
> exception is never raised: Main.e"..\Main.m3", line 9: warning:   
> exception is never raised: <ANY>"..\Main.m3", line 59: warning:   
> unreachable statement"..\Main.m3", line 68: warning: unreachable   
> statement"..\Main.m3", line 71: warning: unreachable   
> statement"..\Main.m3", line 82: warning: unreachable   
> statement"..\Main.m3", line 86: warning: unreachable   
> statement"..\Main.m3", line 64: warning: unreachable statement8   
> warnings encountered -> linking pgm.exelink @_m3responsefile0.txt   
> 2>&1 > pgm.lstmt /nologo /manifest pgm.exe.manifest   
> /outputresource:pgm.exe;1.\pgm.exe >stdout.pgm.raw 2>stderr.pgm.raw
>
> Does the order of the warnings matter?
> Does the test even care if they are printed?
> The expected output and the actual output are in a different order.
> Neither are in order by line number, though the expected output is closer.
> The order is consistent on all platforms?
> No. LINUXLIBC6 and NT386 output in a different order.
> This doesn't seem all that important..

I had noticed that, too, and postponed it at not important (enough)
now to look into, though it would be interesting _why_ the error
output is different between platforms.

If there is a reason for it and it cannot be fixed easily within the
compiler, this would be one case for a target-specific expect file.

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list