aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-01-16 13:02:38 +0100
committerBjörn Gustavsson <[email protected]>2015-01-26 12:58:11 +0100
commit3f7ab0ea59deedd63da8dbaa9dbdbf5666294d6c (patch)
tree59e190501b51567ec043042820c3370097eefc33 /lib/compiler/test
parenteaa0596c7c6e33f21783aef5b44fb52db23fc9fe (diff)
downloadotp-3f7ab0ea59deedd63da8dbaa9dbdbf5666294d6c.tar.gz
otp-3f7ab0ea59deedd63da8dbaa9dbdbf5666294d6c.tar.bz2
otp-3f7ab0ea59deedd63da8dbaa9dbdbf5666294d6c.zip
warnings_SUITE: Eliminate compiler warning for a shadowed variable
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/warnings_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl
index be0348a92d..6e5a7d35e9 100644
--- a/lib/compiler/test/warnings_SUITE.erl
+++ b/lib/compiler/test/warnings_SUITE.erl
@@ -699,10 +699,10 @@ run(Config, Tests) ->
%% Compiles a test module and returns the list of errors and warnings.
run_test(Conf, Test0, Warnings) ->
- Mod = "warnings_"++test_lib:uniq(),
- Filename = Mod ++ ".erl",
+ Module = "warnings_"++test_lib:uniq(),
+ Filename = Module ++ ".erl",
?line DataDir = ?privdir,
- Test = ["-module(", Mod, "). ", Test0],
+ Test = ["-module(", Module, "). ", Test0],
?line File = filename:join(DataDir, Filename),
?line Opts = [binary,export_all,return|Warnings],
?line ok = file:write_file(File, Test),