diff options
author | Björn Gustavsson <[email protected]> | 2016-12-02 12:59:33 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-12-02 12:59:33 +0100 |
commit | d54c12c305425f6126e0fab0b024560df72efb27 (patch) | |
tree | 3af7942ab96fc8c9713554ba9eadf8ec658a2dc9 /lib/stdlib/test/shell_SUITE.erl | |
parent | 27608cfe95d155e56b0cc7503bf910e9b23cd225 (diff) | |
parent | 13838af02bc54db57264c4f198bc819809d65481 (diff) | |
download | otp-d54c12c305425f6126e0fab0b024560df72efb27.tar.gz otp-d54c12c305425f6126e0fab0b024560df72efb27.tar.bz2 otp-d54c12c305425f6126e0fab0b024560df72efb27.zip |
Merge branch 'richcarl/default-compiler-flags/PR-1226/OTP-14071'
* richcarl/default-compiler-flags/PR-1226/OTP-14071:
stdlib test suite: fix uses of export_all
diameter tests: Eliminate use of -compile(export_all)
asn1 test suite: Suppress warnings for -compile(export_all)
Remove left-over uses of -compile(export_all)
Make warn_export_all the default
warn_obsolete_guard is already default
Diffstat (limited to 'lib/stdlib/test/shell_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/shell_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/test/shell_SUITE.erl b/lib/stdlib/test/shell_SUITE.erl index 07eb6772db..56d81eb1f2 100644 --- a/lib/stdlib/test/shell_SUITE.erl +++ b/lib/stdlib/test/shell_SUITE.erl @@ -1794,7 +1794,7 @@ Test1_shell = Test2 = <<"-module(recs). -record(person, {name, age, phone = [], dict = []}). --compile(export_all). +-export([t/0]). t() -> ok. @@ -1961,7 +1961,7 @@ ok. progex_funs(Config) when is_list(Config) -> Test1 = <<"-module(funs). - -compile(export_all). + -export([t/0]). double([H|T]) -> [2*H|double(T)]; double([]) -> []. @@ -3031,7 +3031,7 @@ run_file(Config, Module, Test) -> ok. compile_file(Config, File, Test, Opts0) -> - Opts = [export_all,return,{outdir,proplists:get_value(priv_dir, Config)}|Opts0], + Opts = [export_all,nowarn_export_all,return,{outdir,proplists:get_value(priv_dir, Config)}|Opts0], ok = file:write_file(File, Test), case compile:file(File, Opts) of {ok, _M, _Ws} -> ok; |