[Libreoffice] [PATCH] Splash screen fix for multi-head on Linux (bug 33214)

Josh Heidenreich josh.sickmate at gmail.com
Wed Jul 20 16:43:17 PDT 2011


>> Any specific reason for this construct?
>>
>> +        int i = 0;
>> +        for( ; i < n_xinerama_screens; i++ )
>
> Like, why not for( int i = 0; i < n_xinerama_screens; i++ ) ?  The
> splash is in C, not C++, so this wouldn't work there (unless C99 mode is
> used I think).
>

Yeah it gives the following build error:
splashx.c:524: error: 'for' loop initial declarations are only allowed
in C99 mode


More information about the LibreOffice mailing list