Skip to content

Commit 4fb1035

Browse files
committed
prevent precompilation warning for upcoming versions of Julia
Fixes this precompilation warning: ```julia-repl julia> using LinearSolve Info Given LinearSolve was explicitly requested, output will be shown live WARNING: Detected access to binding `LinearSolve.defaultalg_symbol` in a world prior to its definition world. Julia 1.12 has introduced more strict world age semantics for global bindings. !!! This code may malfunction under Revise. !!! This code will error in future versions of Julia. Hint: Add an appropriate `invokelatest` around the access to this binding. To make this warning an error, and hence obtain a stack trace, use `julia --depwarn=error`. Precompiling LinearSolve finished. 77 dependencies successfully precompiled in 85 seconds. 32 already precompiled. 1 dependency had output during precompilation: ┌ LinearSolve │ [Output was shown above] └ ```
1 parent b93eefa commit 4fb1035

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LinearSolve.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ end
140140

141141
const BLASELTYPES = Union{Float32, Float64, ComplexF32, ComplexF64}
142142

143+
function defaultalg_symbol end
144+
143145
include("generic_lufact.jl")
144146
include("common.jl")
145147
include("extension_algs.jl")

0 commit comments

Comments
 (0)