Skip to content

Commit

Permalink
Merge branch 'raimo/inet_dns-dialyzer-fix' into dev
Browse files Browse the repository at this point in the history
* raimo/inet_dns-dialyzer-fix:
  Stop generating some unused clauses for make_dns_rr_opt/1 local to inet_dns
  • Loading branch information
RaimoNiskanen committed Jun 1, 2011
2 parents 14edda2 + f25432e commit 9507f8e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/kernel/src/inet_dns_record_adts.pl
Expand Up @@ -2,7 +2,7 @@
#
# %CopyrightBegin%
#
# Copyright Ericsson AB 2009. All Rights Reserved.
# Copyright Ericsson AB 2009-2011. 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
Expand Down Expand Up @@ -73,6 +73,10 @@
# "@Values" = "V1,V2"...",VN"
my @D = @DATA;
foreach my $line (@D) {
# Ignore !name lines
if ($line =~ s/^\!(\S+)\s+//) {
next if $1 eq $Name;
}
my $m = 1;
# For leading * iterate $n times, otherwise once
$line =~ s/^\s*[*]// and $m = $n;
Expand Down Expand Up @@ -155,9 +159,9 @@
make_Name(L) when is_list(L) -> \
make_Name(#Record{}, L).
%% Generate #Record{} with one updated field
%%
*make_Name(Field, Value) -> \
!dns_rr_opt %% Generate #Record{} with one updated field
!dns_rr_opt %%
!dns_rr_opt *make_Name(Field, Value) -> \
#Record{Field=Value};
%%
%% Update #Record{} from property list
Expand Down

0 comments on commit 9507f8e

Please sign in to comment.