From c692bf82224eeef6002ca102b0e7631dea8ba863 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Fri, 29 Aug 2008 13:27:00 +0200 Subject: [PATCH] 1045: fix "void function cannot return value" in formhist never_for_this_site(form) did return remember_form(form). In ELinks 0.11.0, both functions returned int, so this was OK. In commit 2b7788614f102db37e76ac612c148c32c208b623 however, the functions were changed to return void, as required by msg_box(). GCC still accepted the return statement but Sun Studio 11 did not. --- src/formhist/formhist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formhist/formhist.c b/src/formhist/formhist.c index 469dcdf50..621533ac9 100644 --- a/src/formhist/formhist.c +++ b/src/formhist/formhist.c @@ -358,7 +358,7 @@ never_for_this_site(void *form_) struct formhist_data *form = form_; form->dontsave = 1; - return remember_form(form); + remember_form(form); } unsigned char *