Обсуждение: Incorrect return clause in regression test positioned-update causing compilation error

Поиск
Список
Период
Сортировка

Incorrect return clause in regression test positioned-update causing compilation error

От
Michael Paquier
Дата:
Hi all,

I found that the regression test positioned-update does not compile
correctly on OSX because of a "return" used in main() instead of a
plain exit().
Patch attached fixes that.
Regards,
--
Michael

Вложения

Re: Incorrect return clause in regression test positioned-update causing compilation error

От
Heikki Linnakangas
Дата:
On 03/06/2014 09:46 AM, Michael Paquier wrote:
> Hi all,
>
> I found that the regression test positioned-update does not compile
> correctly on OSX because of a "return" used in main() instead of a
> plain exit().
> Patch attached fixes that.

Thanks, committed.

I wonder why other compilers haven't warned about that; the "return"
statement didn't return a value, even though the main() function was
declared to return an "int".

- Heikki