Skip to content

Commit

Permalink
Deprecate old catches in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
richcarl committed Jan 10, 2025
1 parent 3c4ccdb commit bea4c29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
# FLAGS
# ----------------------------------------------------

ERL_COMPILE_FLAGS += -Werror
ERL_COMPILE_FLAGS += -Werror +warn_deprecated_catch
ERL_COMPILE_FLAGS += +inline +warn_unused_import \
-I../../stdlib/include -I$(EGEN) -W +warn_missing_spec

Expand Down
2 changes: 2 additions & 0 deletions lib/compiler/src/core_scan.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
-module(core_scan).
-moduledoc false.

-compile(nowarn_deprecated_catch).

-export([string/1, string/2, format_error/1]).

-import(lists, [reverse/1]).
Expand Down

0 comments on commit bea4c29

Please sign in to comment.