mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
Estimated hours taken: 1 Add new options for disabling some warnings, so that they can be disabled by `--inhibit-warnings'. compiler/options.m: Add new options `warn-missing-module-name' and `warn-wrong-module-name' (enabled by default), and ensure that `--inhibit-warnings' disables these options. compiler/prog_io.m: Add code to conditionalize the printing of warnings based on the settings of the new options. doc/user_guide.texi: Document the new options. tests/valid/Mmakefile: tests/valid/inhibit_warn_test.m: A regression test.
5 lines
114 B
Mathematica
5 lines
114 B
Mathematica
% missing `:- module' declaration
|
|
:- pred p(int).
|
|
:- mode p(out) is semidet. % determinism could be tighter
|
|
p(1).
|