From 4fb10354e852e5cf951ce159f70149f5921eec3a Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Thu, 5 Jun 2025 21:07:30 +0200 Subject: [PATCH] prevent precompilation warning for upcoming versions of Julia MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] └ ``` --- src/LinearSolve.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LinearSolve.jl b/src/LinearSolve.jl index c7680903b..e5673310c 100644 --- a/src/LinearSolve.jl +++ b/src/LinearSolve.jl @@ -140,6 +140,8 @@ end const BLASELTYPES = Union{Float32, Float64, ComplexF32, ComplexF64} +function defaultalg_symbol end + include("generic_lufact.jl") include("common.jl") include("extension_algs.jl")