# Warnings switch to oneunit

I am continuously getting these warnings in my code:

``````LB = Array{candidateKeypoint,1}(0)
H̄ = Array{Any}(3,3)
for extremum in LA′
α1Star = 0.0
α2Star = 0.0
α3Star = 0.0
σ = 0.0
x = 0.0
y = 0.0
ω = 0.0
for i = 1:5
H̄ = Hessian(extremum.o, extremum.s, extremum.m, extremum.n)
ḡ = ThreeDgradient(extremum.o, extremum.s, extremum.m, extremum.n)
αStar = alphaStar(H̄, ḡ)
ω = omega(H̄, ḡ, extremum.o, extremum.s, extremum.m, extremum.n)[1]
δOE = δMin * 2^(extremum.o - 1)
α1Star = αStar[1]
α2Star = αStar[2]
α3Star = αStar[3]
σ = (δOE/δMin) * σMin * 2^((α1Star + extremum.s)/nSpo)
x = δOE * (α2Star + extremum.m)
y = δOE * (α2Star + extremum.n)
extremum.s, extremum.m, extremum.n = round(Int64, extremum.s + α1Star), round(Int64, extremum.m + α2Star), round(Int64, extremum.n + α3Star)
if max(abs(α1Star), abs(α2Star), abs(α3Star)) < 0.6 || extremum.s < 1 || extremum.s > 3
break
end
end
if max(abs(α1Star), abs(α2Star), abs(α3Star)) < 0.6 && extremum.s > 0 && extremum.s < 4
push!(LB, candidateKeypoint(extremum.o, extremum.s, extremum.m, extremum.n, extremum.intensity, σ, x, y, ω))
end
end
``````

WARNING: one(ColorTypes.Gray{Float64}) will soon switch to returning 1; you might need to switch to `oneunit`
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
[2] one(::Type{ColorTypes.Gray{Float64}}) at /////////////////////////////////////////////////home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/ColorTypes/src/traits.jl:341
[3] pinv(::Array{ColorTypes.Gray{Float64},2}) at ./linalg/dense.jl:863
[4] macro expansion at ./In[35]:14 [inlined]
[5] anonymous at ./:?
[7] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/IJulia/src/execute_request.jl:158
[8] (::Compat.#inner#18{Array{Any,1},IJulia.#execute_request,Tuple{ZMQ.Socket,IJulia.Msg}})() at /////////////////////////////////////////////////home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/Compat/src/Compat.jl:378
[9] eventloop(::ZMQ.Socket) at /home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/IJulia/src/eventloop.jl:8
WARNING: one(ColorTypes.Gray{Float64}) will soon switch to returning 1; you might need to switch to `oneunit`
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
[2] one(::Type{ColorTypes.Gray{Float64}}) at /////////////////////////////////////////////////home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/ColorTypes/src/traits.jl:341
[3] pinv(::Array{ColorTypes.Gray{Float64},2}, ::Float64) at ./linalg/dense.jl:835
[4] pinv(::Array{ColorTypes.Gray{Float64},2}) at ./linalg/dense.jl:864
[5] macro expansion at ./In[35]:14 [inlined]
[6] anonymous at ./:?
[8] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/IJulia/src/execute_request.jl:158
[9] (::Compat.#inner#18{Array{Any,1},IJulia.#execute_request,Tuple{ZMQ.Socket,IJulia.Msg}})() at /////////////////////////////////////////////////home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/Compat/src/Compat.jl:378
[10] eventloop(::ZMQ.Socket) at /home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/IJulia/src/eventloop.jl:8
WARNING: one(ColorTypes.Gray{Float64}) will soon switch to returning 1; you might need to switch to `oneunit`
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
[2] one(::Type{ColorTypes.Gray{Float64}}) at /////////////////////////////////////////////////home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/ColorTypes/src/traits.jl:341
[3] #svdfact#51(::Bool, ::Function, ::Array{ColorTypes.Gray{Float64},2}) at ./linalg/svd.jl:64
[4] (::Base.LinAlg.#kw##svdfact)(::Array{Any,1}, ::Base.LinAlg.#svdfact, ::Array{ColorTypes.Gray{Float64},2}) at ./:0
[5] pinv(::Array{ColorTypes.Gray{Float64},2}, ::Float64) at ./linalg/dense.jl:854
[6] pinv(::Array{ColorTypes.Gray{Float64},2}) at ./linalg/dense.jl:864
[7] macro expansion at ./In[35]:14 [inlined]
[8] anonymous at ./:?
[10] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/IJulia/src/execute_request.jl:158
[11] (::Compat.#inner#18{Array{Any,1},IJulia.#execute_request,Tuple{ZMQ.Socket,IJulia.Msg}})() at /////////////////////////////////////////////////home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/Compat/src/Compat.jl:378
[12] eventloop(::ZMQ.Socket) at /home/subhankar/julia/JuliaPro-0.6.4.1/JuliaPro/pkgs-0.6.4.1/v0.6/IJulia/src/eventloop.jl:8

You mean in addition to the suggestion that follows `WARNING` above the stacktrace?
It may be that a dependency has not updated their deprecation warnings. Three lines down from `WARNING` it even tells you which: