diff options
author | Björn Gustavsson <[email protected]> | 2017-05-16 08:08:45 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-05-16 08:08:45 +0200 |
commit | 6399c4911bf1c0c717e3cf1c30ac366e8667ad5a (patch) | |
tree | b9b90378456c9bafa1a025022fcfc920a3895ae9 /lib/compiler | |
parent | 8baada6ba97f7809c99cae4e799fddb273a54882 (diff) | |
parent | 7b169140b2d37f43996b9d1a94877926a471d97d (diff) | |
download | otp-6399c4911bf1c0c717e3cf1c30ac366e8667ad5a.tar.gz otp-6399c4911bf1c0c717e3cf1c30ac366e8667ad5a.tar.bz2 otp-6399c4911bf1c0c717e3cf1c30ac366e8667ad5a.zip |
Merge pull request #1453 from bjorng/bjorn/catch-warning/OTP-14401
Warn for potentially unsafe use of get_stacktrace/0
Diffstat (limited to 'lib/compiler')
-rw-r--r-- | lib/compiler/doc/src/compile.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml index fed68037c1..10164890f2 100644 --- a/lib/compiler/doc/src/compile.xml +++ b/lib/compiler/doc/src/compile.xml @@ -629,6 +629,14 @@ module.beam: module.erl \ <p>Turns off warnings for unused record types. Default is to emit warnings for unused locally defined record types.</p> </item> + + <tag><c>nowarn_get_stacktrace</c></tag> + <item> + <p>Turns off warnings for using <c>get_stacktrace/0</c> in a context + where it will probably not work in a future release. For example, + by default there will be a warning if <c>get_stacktrace/0</c> is + used following a <c>catch</c> expression.</p> + </item> </taglist> <p>Another class of warnings is generated by the compiler |