Skip to content

compiler options are confusing #10485

@dgud

Description

@dgud

Trying compile the test suite on i.e. running make in mnesia/test/

V=1 make
erlc -W  +debug_info +warn_missing_doc_function +warn_missing_doc_callback +warn_missing_spec_documented +nowarn_missing_spec_documented -Werror -o./ mnesia_evil_coverage_test.erl

mnesia_evil_coverage_test.erl:61:1: Warning: missing specification for function init_per_testcase/2
%   61| init_per_testcase(Func, Conf) ->
%     | ^

mnesia_evil_coverage_test.erl:64:1: Warning: missing specification for function end_per_testcase/2
%   64| end_per_testcase(Func, Conf) ->
%     | ^

Produces a lot of warnings of missing specs but no warning of missing documentation?

Adding:

-compile(nowarn_missing_spec_all).
and/or
-compile(nowarn_missing_spec).

Don't remove those warnings? Shouldn't they?

Metadata

Metadata

Assignees

Labels

bugIssue is reported as a bugteam:VMAssigned to OTP team VM

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions