From 003535808cf258c487954ef6b2d03a4522ddebf1 Mon Sep 17 00:00:00 2001 From: Maurits Dijkstra Date: Tue, 8 Nov 2016 21:48:44 +0100 Subject: [PATCH] The return type from the print helper function should be Void, not Bool. --- src/LIBLINEAR.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/LIBLINEAR.jl b/src/LIBLINEAR.jl index e95e00d..00964bc 100644 --- a/src/LIBLINEAR.jl +++ b/src/LIBLINEAR.jl @@ -83,7 +83,12 @@ let liblinear = C_NULL end # helper -linear_print(str::Ptr{UInt8}) = verbosity && print(unsafe_string(str)) +function linear_print(str::Ptr{UInt8}) + if verbosity + print(unsafe_string(str)) + end + nothing +end macro cachedsym(symname) cached = gensym()