Skip to content

Commit

Permalink
remove deprecated use of warn_once (#217)
Browse files Browse the repository at this point in the history
* remove deprecated use of warn_once

* update travis to test on 0.7
  • Loading branch information
mlubin authored Aug 19, 2018
1 parent 0a891a1 commit 3ff98f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os:
- osx
julia:
- 0.6
- nightly
- 0.7
notifications:
email: false
sudo: false
Expand Down
2 changes: 1 addition & 1 deletion src/HighLevelInterface/HighLevelInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Compat

function warn_no_inf(T)
if !(isinf(typemin(T)) && isinf(typemax(T)))
Base.warn_once("Element type $T does not have an infinite value. Note that this may artifically introduce ranged (two-sided) constraints. To avoid this, consider casting the problem data to Float64.")
@Compat.warn("Element type $T does not have an infinite value. Note that this may artifically introduce ranged (two-sided) constraints. To avoid this, consider casting the problem data to Float64.")
end
end

Expand Down

0 comments on commit 3ff98f8

Please sign in to comment.