Skip to content

Commit 5eaf7f0

Browse files
committed
Suppress warnings about obsolete boolean operators
1 parent 34cf11b commit 5eaf7f0

File tree

116 files changed

+192
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+192
-21
lines changed

erts/preloaded/src/prim_zip.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
-include_lib("stdlib/include/zip.hrl"). % #zip_file, #zip_comment
4242
-include("zip_internal.hrl"). % #cd_file_header etc
4343

44+
-compile(nowarn_obsolete_bool_op).
45+
4446
%% max bytes read from files and archives (and fed to zlib)
4547
-define(READ_BLOCK_SIZE, 16*1024).
4648

lib/common_test/src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ DTD_FILES = \
117117
# FLAGS
118118
# ----------------------------------------------------
119119
ERL_COMPILE_FLAGS += -pa ../ebin -I../include -I $(ERL_TOP)/lib/snmp/include/ \
120-
-I../../xmerl/inc/ -I $(ERL_TOP)/lib/kernel/include -Werror
120+
-I../../xmerl/inc/ -I $(ERL_TOP)/lib/kernel/include -Werror +warn_obsolete_bool_op
121121

122122
# ----------------------------------------------------
123123
# Targets

lib/common_test/src/ct_framework.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
-export([error_in_suite/1, init_per_suite/1, end_per_suite/1,
3737
init_per_group/2, end_per_group/2]).
3838

39+
-compile(nowarn_obsolete_bool_op).
40+
3941
-include("ct.hrl").
4042
-include("ct_event.hrl").
4143
-include("ct_util.hrl").

lib/common_test/src/ct_groups.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
-export([delete_subs/2]).
3333
-export([expand_groups/3, search_and_override/3]).
3434

35+
-compile(nowarn_obsolete_bool_op).
36+
3537
-define(val(Key, List), proplists:get_value(Key, List)).
3638
-define(val(Key, List, Def), proplists:get_value(Key, List, Def)).
3739
-define(rev(L), lists:reverse(L)).

lib/common_test/src/ct_logs.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
%% Simulate logger process for use without ct environment running
5555
-export([simulate/0]).
5656

57+
-compile(nowarn_obsolete_bool_op).
58+
5759
-include("ct.hrl").
5860
-include("ct_event.hrl").
5961
-include("ct_util.hrl").

lib/common_test/src/ct_run.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
%% Misc internal API functions
3434
-export([variables_file_name/1,script_start1/2,run_test2/1, run_make/3]).
3535

36+
-compile(nowarn_obsolete_bool_op).
37+
3638
-include("ct.hrl").
3739
-include("ct_event.hrl").
3840
-include("ct_util.hrl").

lib/common_test/src/ct_slave.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ term in the Test Specification.
3636
""".
3737
-moduledoc(#{since => "OTP R14B"}).
3838

39+
-compile(nowarn_obsolete_bool_op).
40+
3941
-export([start/1, start/2, start/3, stop/1, stop/2]).
4042

4143
-export([slave_started/2, slave_ready/2, monitor_master/1]).

lib/common_test/src/ct_telnet.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ suite() ->
173173
format_data/2]).
174174
-export([start_gen_log/1, end_gen_log/0, log/3, log/4]).
175175

176+
-compile(nowarn_obsolete_bool_op).
177+
176178
-define(RECONNS,3).
177179
-define(RECONN_TIMEOUT,5000).
178180
-define(DEFAULT_TIMEOUT,10000).

lib/common_test/src/ct_testspec.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ This module exports help functions for parsing of test specifications.
3535

3636
-export([testspec_rec2list/1, testspec_rec2list/2]).
3737

38+
-compile(nowarn_obsolete_bool_op).
39+
3840
-include("ct_util.hrl").
3941
-define(testspec_fields, record_info(fields, testspec)).
4042

lib/common_test/src/test_server_ctrl.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383

8484
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8585

86+
-compile(nowarn_obsolete_bool_op).
87+
8688
-include("test_server_internal.hrl").
8789
-include_lib("kernel/include/file.hrl").
8890
-define(suite_ext, "_SUITE").

0 commit comments

Comments
 (0)