diff options
author | Patrik Nyblom <[email protected]> | 2010-09-01 14:30:14 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-09-10 14:24:42 +0200 |
commit | 19a3f0c5bab37ba261abbca6c0253c1e3cb4d3ac (patch) | |
tree | 07492ef6b7f98ef05ecc47518038980173996480 /lib/mnesia | |
parent | 61b3f9abf28ba87e6042423192685e9d426dd040 (diff) | |
download | otp-19a3f0c5bab37ba261abbca6c0253c1e3cb4d3ac.tar.gz otp-19a3f0c5bab37ba261abbca6c0253c1e3cb4d3ac.tar.bz2 otp-19a3f0c5bab37ba261abbca6c0253c1e3cb4d3ac.zip |
Remove warnings for clashes with new autoimported BIFs
Diffstat (limited to 'lib/mnesia')
-rw-r--r-- | lib/mnesia/src/mnesia_registry.erl | 4 | ||||
-rw-r--r-- | lib/mnesia/src/mnesia_text.erl | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/mnesia/src/mnesia_registry.erl b/lib/mnesia/src/mnesia_registry.erl index 9805d48697..202689ae5e 100644 --- a/lib/mnesia/src/mnesia_registry.erl +++ b/lib/mnesia/src/mnesia_registry.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1998-2009. All Rights Reserved. +%% Copyright Ericsson AB 1998-2010. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -65,6 +65,8 @@ %%%---------------------------------------------------------------------- %% External exports +%% Avoid warning for local function max/2 clashing with autoimported BIF. +-compile({no_auto_import,[max/2]}). -export([start_dump/2, start_restore/2]). -export([create_table/1, create_table/2]). diff --git a/lib/mnesia/src/mnesia_text.erl b/lib/mnesia/src/mnesia_text.erl index f1a28bf43d..ab1362f6b6 100644 --- a/lib/mnesia/src/mnesia_text.erl +++ b/lib/mnesia/src/mnesia_text.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2009. All Rights Reserved. +%% Copyright Ericsson AB 1996-2010. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -20,6 +20,8 @@ %% -module(mnesia_text). +%% Avoid warning for local function error/1 clashing with autoimported BIF. +-compile({no_auto_import,[error/1]}). -export([parse/1, file/1, load_textfile/1, dump_to_textfile/1]). load_textfile(File) -> |