File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -656,6 +656,12 @@ value are listed.
656
656
Default is to emit warnings for every use of a callback known by the compiler to
657
657
be deprecated.
658
658
659
+ - **`warn_deprecated_catch`** - Enables warnings for use of old style catch
660
+ expressions on the form `catch Expr` instead of the modern `try ... catch
661
+ ... end`. You may enable this compiler option on the project level and
662
+ add `-compile(nowarn_deprecated_catch).` to individual files which still
663
+ contain old catches in order to prevent new uses from getting added.
664
+
659
665
- **`nowarn_removed`** - Turns off warnings for calls to functions that have
660
666
been removed. Default is to emit warnings for every call to a function known
661
667
by the compiler to have been recently removed from Erlang/OTP.
You can’t perform that action at this time.
0 commit comments