From 5a68d017d583f4d9f046d6581fb9f9c2337403c6 Mon Sep 17 00:00:00 2001 From: Stavros Aronis Date: Sat, 16 Jul 2011 13:51:39 +0200 Subject: Fix bug when reporting unused functions --- lib/dialyzer/test/small_SUITE_data/src/nowarnunused.erl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/dialyzer/test/small_SUITE_data/src/nowarnunused.erl (limited to 'lib/dialyzer/test/small_SUITE_data') 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}}). -- cgit v1.2.3