aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2011-07-16 13:51:39 +0200
committerHenrik Nord <[email protected]>2011-08-01 16:06:16 +0200
commit5a68d017d583f4d9f046d6581fb9f9c2337403c6 (patch)
treef8c266be0e77f211966c3168011b576fe5661db7 /lib/dialyzer/test/small_SUITE_data
parenta50b0c626f5f92ba0e11b8de8115bacf33189867 (diff)
downloadotp-5a68d017d583f4d9f046d6581fb9f9c2337403c6.tar.gz
otp-5a68d017d583f4d9f046d6581fb9f9c2337403c6.tar.bz2
otp-5a68d017d583f4d9f046d6581fb9f9c2337403c6.zip
Fix bug when reporting unused functions
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/nowarnunused.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/nowarnunused.erl b/lib/dialyzer/test/small_SUITE_data/src/nowarnunused.erl
new file mode 100644
index 0000000000..63daeee9e3
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/nowarnunused.erl
@@ -0,0 +1,7 @@
+-module(nowarnunused).
+
+-compile({nowarn_unused_function, return_error/2}).
+
+-spec return_error(integer(), any()) -> no_return().
+return_error(Line, Message) ->
+ throw({error, {Line, ?MODULE, Message}}).