aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/compiler/diameter_codegen.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-12-07 15:48:16 +0100
committerAnders Svensson <[email protected]>2011-12-08 00:53:05 +0100
commit57d5564fca1f6d5e57199e1dcdca1d64284ecae8 (patch)
tree10e2c6d67f85dfcd9e49749509abb6c53ffad13c /lib/diameter/src/compiler/diameter_codegen.erl
parentff859b3877f628e9d71373baef7f73f9fb5be2de (diff)
downloadotp-57d5564fca1f6d5e57199e1dcdca1d64284ecae8.tar.gz
otp-57d5564fca1f6d5e57199e1dcdca1d64284ecae8.tar.bz2
otp-57d5564fca1f6d5e57199e1dcdca1d64284ecae8.zip
Tell dialyzer not to warn about unused functions
Depending on the dictionary, generated dictionary modules may contain unused functions included from diameter_gen.hrl. There may still be warnings however since even used functions can contain code that isn't reached for a given dictionary. It would be useful for diameter to generate spec attributes for a dictionary's generated records but the format of these is currently undocumented.
Diffstat (limited to 'lib/diameter/src/compiler/diameter_codegen.erl')
-rw-r--r--lib/diameter/src/compiler/diameter_codegen.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/src/compiler/diameter_codegen.erl b/lib/diameter/src/compiler/diameter_codegen.erl
index 489f521f70..1e31c40afe 100644
--- a/lib/diameter/src/compiler/diameter_codegen.erl
+++ b/lib/diameter/src/compiler/diameter_codegen.erl
@@ -129,7 +129,7 @@ gen(hrl, Spec, Mod, Path) ->
gen(erl, Spec, Mod, Path) ->
Forms = [{?attribute, module, Mod},
{?attribute, compile, [{parse_transform, diameter_exprecs}]},
- {?attribute, compile, [nowarn_unused_function]},
+ {?attribute, compile, [{parse_transform, diameter_nowarn}]},
{?attribute, export, [{name, 0},
{id, 0},
{vendor_id, 0},