Skip to content

Commit

Permalink
Avoid softscope warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 29, 2020
1 parent aa09aca commit a8b5750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Base.show(io::IO, err::CuError) = print(io, "CuError($(err.code))")

# define shorthands that give CuError objects
for code in instances(cudaError_enum)
name = String(Symbol(code))
local name = String(Symbol(code))
shorthand = Symbol(name[6:end]) # strip the CUDA_ prefix
@eval const $shorthand = CuError($code)
end
Expand Down

0 comments on commit a8b5750

Please sign in to comment.