Skip to content

Commit

Permalink
Document warn_deprecated_catch option
Browse files Browse the repository at this point in the history
  • Loading branch information
richcarl committed Jan 13, 2025
1 parent 21471e4 commit 7452c72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/compiler/src/compile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,12 @@ value are listed.
Default is to emit warnings for every use of a callback known by the compiler to
be deprecated.
- **`warn_deprecated_catch`** - Enables warnings for use of old style catch
expressions on the form `catch Expr` instead of the modern `try ... catch
... end`. You may enable this compiler option on the project level and
add `-compile(nowarn_deprecated_catch).` to individual files which still
contain old catches in order to prevent new uses from getting added.
- **`nowarn_removed`** - Turns off warnings for calls to functions that have
been removed. Default is to emit warnings for every call to a function known
by the compiler to have been recently removed from Erlang/OTP.
Expand Down

0 comments on commit 7452c72

Please sign in to comment.