From: guestwalk Date: Fri, 23 Nov 2012 02:48:45 +0000 (+0000) Subject: Add return 0 into print_null in predict.c, X-Git-Tag: v193~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=347607e403e8b43e097ee409a908aa0d186e09f5;p=liblinear Add return 0 into print_null in predict.c, because it is used to replace printf for the "-q" option and printf will return the number of characters it printed. In train we do not need this because the two "info" are different. --- diff --git a/predict.c b/predict.c index 48b65d9..c5b3f1d 100644 --- a/predict.c +++ b/predict.c @@ -5,7 +5,7 @@ #include #include "linear.h" -int print_null(const char *s,...) {} +int print_null(const char *s,...) {return 0;} static int (*info)(const char *fmt,...) = &printf;