Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1545-erl_lint_SUITE-Fix-fallout-from-deprecatio...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1545-erl_lint_SUITE-Fix-fallout-from-deprecation-warnings.patch of Package erlang
From 25f1143e575525e0f4cdb85c05c1d4991715177a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org> Date: Mon, 12 Aug 2024 12:19:49 +0200 Subject: [PATCH] erl_lint_SUITE: Fix fallout from deprecation warnings for gen_fsm --- lib/stdlib/test/erl_lint_SUITE.erl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl index 46a15627f1..97a551f87e 100644 --- a/lib/stdlib/test/erl_lint_SUITE.erl +++ b/lib/stdlib/test/erl_lint_SUITE.erl @@ -3535,13 +3535,14 @@ behaviour_multiple(Config) when is_list(Config) -> {behaviour4, <<"-behaviour(gen_server). - -behaviour(gen_fsm). + -behaviour(gen_statem). -behaviour(supervisor). -export([init/1,handle_call/3,handle_cast/2, handle_info/2,handle_info/3, handle_event/3,handle_sync_event/4, code_change/3,code_change/4, - terminate/2,terminate/3,terminate/4]). + terminate/2,terminate/3,terminate/4, + callback_mode/0]). init(_) -> ok. handle_call(_, _, _) -> ok. handle_event(_, _, _) -> ok. @@ -3554,11 +3555,12 @@ behaviour_multiple(Config) when is_list(Config) -> terminate(_, _) -> ok. terminate(_, _, _) -> ok. terminate(_, _, _, _) -> ok. + callback_mode() -> state_functions. ">>, [], {warnings,[{2, erl_lint, - {conflicting_behaviours,{init,1},gen_fsm,1,gen_server}}, + {conflicting_behaviours,{init,1},gen_statem,1,gen_server}}, {3, erl_lint, {conflicting_behaviours,{init,1},supervisor,1,gen_server}}]}} -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor