Skip to content

Commit

Permalink
fix export_all compile errors
Browse files Browse the repository at this point in the history
Signed-off-by: Lincoln Baker <[email protected]>
  • Loading branch information
lbakerchef authored and --global committed Nov 7, 2019
1 parent 3ef7f6a commit 9d8c2f9
Show file tree
Hide file tree
Showing 127 changed files with 127 additions and 87 deletions.
1 change: 1 addition & 0 deletions dev/cookbooks/dev/files/default/user_default.erl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
-module(user_default).
% required to expose the record definitions we load in from various includes
-compile(export_all).
-compile(nowarn_export_all).
%
% Invoke this from the erlang shell to reload a module in place
% for example, um(oc_chef_wm_base).
Expand Down
1 change: 1 addition & 0 deletions src/bookshelf/test/bkswt_api_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

%% Note: This directive should only be used in test suites.
-compile(export_all).
-compile(nowarn_export_all).

-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/_checkouts/oc_erchef/include/oc_chef_wm.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.
%% Since CS12, we have a default-org mode. Under this mode,
%% certain endpoints can be routed from
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/chef_db_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

-include_lib("common_test/include/ct.hrl").

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

all() -> [node_ops, user_ops, client_ops, data_bag_ops, data_bag_item_ops,
sandbox_ops, cookbook_ops,
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/chef_sql_clients.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_clients).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_cookbook_deps).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_cookbook_recipes).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_cookbook_versions).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/chef_sql_data_bag.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_data_bag).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_data_bag_item).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_environment_cookbooks).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_latest_cookbooks).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/chef_sql_nodes.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_nodes).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/chef_sql_sandboxes.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_sandboxes).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/chef_sql_users.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(chef_sql_users).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/itest_cookbook_util.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(itest_cookbook_util).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_db/itest/itest_util.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(itest_util).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include("chef_db.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_db/src/chef_sql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-ifdef(namespaced_types).
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_index/src/chef_index_queue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
]).

-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

-include("chef_index.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_index/src/chef_index_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
-export([init/1]).

-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

-define(SERVER, ?MODULE).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_data_bag.erl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_depsolver.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_regex.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_metrics.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

%% @doc Generate a label for stats_hero based on an `Upstream' name
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_node.erl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
]).
-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_objects/src/chef_object_base.erl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

%% In order to fully test things
-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

-spec set_created(Object :: chef_object() |
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/chef_objects/src/chef_password.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
verify/2]).

-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

-define(DEFAULT_HASH_TYPE, <<"bcrypt">>).
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_regex.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_regex.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_role.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
]).
-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_s3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-type http_verb() :: put | get.
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/chef_objects/src/chef_sandbox.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("chef_types.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/depsolver/test/depsolver_tester.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
%%-------------------------------------------------------------------
-module(depsolver_tester).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").

-define(ADD_PKG, "^DepSelector\\sinst#\\s(\\d+)\\s-\\s"
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/depsolver/test/depsolver_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
-module(depsolver_tests).

-include_lib("eunit/include/eunit.hrl").
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
%%===========================================================================
%% Tests
%%============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-include("oc_chef_authz.hrl").
-include("oc_chef_types.hrl").

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

all() -> [fetch_container_sql].

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-module(oc_chef_group_SUITE).

-compile(export_all).
-compile(nowarn_export_all).

-include_lib("common_test/include/ct.hrl").
-include("oc_chef_types.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/oc_chef_authz/itest/suite_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-include_lib("common_test/include/ct.hrl").


-compile([export_all]).
-compile([export_all, nowarn_export_all]).

init(Config0) ->
Config = init_pg_db(Config0),
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/oc_chef_authz/src/oc_chef_authz.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
]).

-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

-include("oc_chef_authz.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/chef-mover/apps/oc_chef_authz/src/oc_chef_authz_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
]).

%-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
%-endif.

-include("oc_chef_authz.hrl").
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
]).

-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
]).

-ifdef(TEST).
-compile([export_all]).
-compile([export_all, nowarn_export_all]).
-endif.

%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(oc_chef_authz_cleanup_tests).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

-module(oc_chef_authz_tests).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

%% -export([raw_request_test_helper/1,
%% test_setup/0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

-module(oc_chef_group_tests).

-compile([export_all]).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").

Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/oc_chef_wm/src/chef_wm_cookbooks.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-include("oc_chef_wm.hrl").
Expand Down
1 change: 1 addition & 0 deletions src/chef-mover/apps/oc_chef_wm/src/chef_wm_status.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

-ifdef(TEST).
-compile(export_all).
-compile(nowarn_export_all).
-endif.

-export([init/1,
Expand Down
Loading

0 comments on commit 9d8c2f9

Please sign in to comment.