Skip to content

Commit 3ff98f8

Browse files
authored
remove deprecated use of warn_once (#217)
* remove deprecated use of warn_once * update travis to test on 0.7
1 parent 0a891a1 commit 3ff98f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ os:
44
- osx
55
julia:
66
- 0.6
7-
- nightly
7+
- 0.7
88
notifications:
99
email: false
1010
sudo: false

src/HighLevelInterface/HighLevelInterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using Compat
66

77
function warn_no_inf(T)
88
if !(isinf(typemin(T)) && isinf(typemax(T)))
9-
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.")
9+
@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.")
1010
end
1111
end
1212

0 commit comments

Comments
 (0)