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

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

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

От:
Michael Paquier <michael.paquier@gmail.com>
Дата:
Вложения:
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 <hlinnakangas@vmware.com>
Дата:
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

FAQ