JuliaSmoothOptimizers / ADNLPModels.jl

Other
37 stars 14 forks source link

WARNING: method definition ... declares type variable AD but does not use it #159

Closed dpo closed 1 year ago

dpo commented 1 year ago

With Julia 1.9 and ADNLPModels 0.6.2, I'm getting

┌ ADNLPModels [54578032-b7ea-4c30-94aa-7cbd1cce6c9a]
│  WARNING: method definition for #ADNLSModel!#251 at /home/runner/.julia/packages/ADNLPModels/gdqYX/src/nls.jl:149 declares type variable AD but does not use it.
│  WARNING: method definition for #ADNLSModel#287 at /home/runner/.julia/packages/ADNLPModels/gdqYX/src/nls.jl:570 declares type variable AD but does not use it.
│  WARNING: method definition for #ADNLSModel!#290 at /home/runner/.julia/packages/ADNLPModels/gdqYX/src/nls.jl:600 declares type variable AD but does not use it.
└ 

https://github.com/JuliaSmoothOptimizers/RegularizedProblems.jl/actions/runs/5180679050/jobs/9335162380?pr=41#step:6:680

tmigot commented 1 year ago

I think this is the same as #156 and fixed in #157

dpo commented 1 year ago

Great, thanks. Maybe we just need a bugfix release then.