{$warn xxx error} helpfulness suboptimal
Original Reporter info from Mantis: nanobit @nanobit
-
Reporter name:
Original Reporter info from Mantis: nanobit @nanobit
- Reporter name:
Description:
"Fatal: Compilation aborted" is not enough information.
After compile abortion due to the promoted warning:
Source line and error code are not obvious from the compile messages,
but only the generic "Fatal: Compilation aborted" at the list-end is obvious.
The messages list includes the error source (warning),
but programmers need to guess and select one from the whole list,
wherein "all" other messages (source locations) are unrelated to this error.
Steps to reproduce:
Example which produces fatal error:
{$warn 4045 error}
const negValue = -1;
var dw: dword;
...
if (negValue <> dw) then; // "Warning: Comparison might be always true ..."
Additional information:
FPC 3.2
Mantis conversion info:
- Mantis ID: 36628
- OS: Windows
- OS Build: 10
- Platform: win32
- Version: 2.0.4