Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0341-Suppress-warnings-for-use-of-erlang-phash-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0341-Suppress-warnings-for-use-of-erlang-phash-2.patch of Package erlang
From d1b8bdc75a00f84c1987497915e2a1659b147b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Mon, 2 Nov 2020 14:40:24 +0100 Subject: [PATCH 1/3] Suppress warnings for use of erlang:phash/2 We can't update the used hash function, because it must be consistent with a remote node or a term saved to disk by a previous release of OTP. --- lib/hipe/main/hipe_main.erl | 1 + lib/mnesia/src/mnesia_controller.erl | 1 + lib/mnesia/src/mnesia_frag_hash.erl | 1 + lib/stdlib/src/dets_v9.erl | 1 + lib/stdlib/src/dict.erl | 1 + lib/stdlib/src/sets.erl | 1 + lib/syntax_tools/src/igor.erl | 1 + 7 files changed, 7 insertions(+) diff --git a/lib/hipe/main/hipe_main.erl b/lib/hipe/main/hipe_main.erl index 6e48f0cffd..bfd23be389 100644 --- a/lib/hipe/main/hipe_main.erl +++ b/lib/hipe/main/hipe_main.erl @@ -27,6 +27,7 @@ %%===================================================================== -module(hipe_main). +-compile([{nowarn_deprecated_function, [{erlang,phash,2}]}]). -export([compile_icode/4]). %%===================================================================== diff --git a/lib/mnesia/src/mnesia_controller.erl b/lib/mnesia/src/mnesia_controller.erl index 5a8cb302b2..55cb73e1ca 100644 --- a/lib/mnesia/src/mnesia_controller.erl +++ b/lib/mnesia/src/mnesia_controller.erl @@ -39,6 +39,7 @@ %% We processes the load request queue as a "background" job.. -module(mnesia_controller). +-compile([{nowarn_deprecated_function, [{erlang,phash,2}]}]). -behaviour(gen_server). diff --git a/lib/mnesia/src/mnesia_frag_hash.erl b/lib/mnesia/src/mnesia_frag_hash.erl index ae4105382e..07600807c2 100644 --- a/lib/mnesia/src/mnesia_frag_hash.erl +++ b/lib/mnesia/src/mnesia_frag_hash.erl @@ -25,6 +25,7 @@ %header_doc_include -module(mnesia_frag_hash). +-compile([{nowarn_deprecated_function, [{erlang,phash,2}]}]). %% Fragmented Table Hashing callback functions -export([ diff --git a/lib/stdlib/src/dets_v9.erl b/lib/stdlib/src/dets_v9.erl index 3ab8f87ebf..91d4858b6b 100644 --- a/lib/stdlib/src/dets_v9.erl +++ b/lib/stdlib/src/dets_v9.erl @@ -18,6 +18,7 @@ %% %CopyrightEnd% %% -module(dets_v9). +-compile([{nowarn_deprecated_function, [{erlang,phash,2}]}]). %% Dets files, implementation part. This module handles version 9. %% To be called from dets.erl only. diff --git a/lib/stdlib/src/dict.erl b/lib/stdlib/src/dict.erl index 9449ba3dc2..cc16ab397e 100644 --- a/lib/stdlib/src/dict.erl +++ b/lib/stdlib/src/dict.erl @@ -35,6 +35,7 @@ %% reorder keys within a bucket. -module(dict). +-compile([{nowarn_deprecated_function, [{erlang,phash,2}]}]). %% Standard interface. -export([new/0,is_key/2,to_list/1,from_list/1,size/1,is_empty/1]). diff --git a/lib/stdlib/src/sets.erl b/lib/stdlib/src/sets.erl index 8adb9016e2..7ee3454efa 100644 --- a/lib/stdlib/src/sets.erl +++ b/lib/stdlib/src/sets.erl @@ -35,6 +35,7 @@ %% reorder keys within in a bucket. -module(sets). +-compile([{nowarn_deprecated_function, [{erlang,phash,2}]}]). %% Standard interface. -export([new/0,is_set/1,size/1,is_empty/1,to_list/1,from_list/1]). diff --git a/lib/syntax_tools/src/igor.erl b/lib/syntax_tools/src/igor.erl index b712b77e9f..bbb40be7df 100644 --- a/lib/syntax_tools/src/igor.erl +++ b/lib/syntax_tools/src/igor.erl @@ -90,7 +90,9 @@ -module(igor). -deprecated([{'_','_',"use https://github.com/richcarl/igor"}]). --compile({nowarn_deprecated_function,[{erl_tidy,module,2}]}). +-compile([{nowarn_deprecated_function, + [{erlang,phash,2}, + {erl_tidy,module,2}]}]). -export([create_stubs/2, merge/2, merge/3, merge_files/3, merge_files/4, merge_sources/3, parse_transform/2, rename/2, rename/3]). -- 2.26.2
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