Skip to content

Commit

Permalink
Use warn_once instead of warn (#5038)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralBShah committed Dec 6, 2013
1 parent 04f5c34 commit 22bcba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/sparse/sparsematrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function findn{Tv,Ti}(S::SparseMatrixCSC{Tv,Ti})
J[count] = col
count += 1
else
warn("sparse matrix contains explicit stored zeros")
warn_once("sparse matrix contains explicit stored zeros")
end
end

Expand All @@ -313,7 +313,7 @@ function findnz{Tv,Ti}(S::SparseMatrixCSC{Tv,Ti})
V[count] = S.nzval[k]
count += 1
else
warn("sparse matrix contains explicit stored zeros")
warn_once("sparse matrix contains explicit stored zeros")
end
end

Expand Down

0 comments on commit 22bcba3

Please sign in to comment.