[PATCH weston] gl: Don't declare variables in for loop
Daniel Stone
daniel at fooishbar.org
Mon Nov 21 18:06:23 UTC 2016
Hi,
On 21 November 2016 at 18:02, Bryce Harrington <bryce at osg.samsung.com> wrote:
> Fixes compilation error introduced by 43cea54c:
>
> libweston/gl-renderer.c:2862:2: error: ‘for’ loop initial declarations
> are only allowed in C99 mode
> for (unsigned i = 0; i < ARRAY_LENGTH(swap_damage_ext_to_entrypoint);
> i++) {
> ^
Sorry, no idea how I didn't spot that during review. Out of interest,
what exotic compiler/CFLAGS are you using to have caught this? Pushed
with review in any case:
To ssh://git.freedesktop.org/git/wayland/weston
3447619..fe0410b upstream -> master
Cheers,
Daniel
More information about the wayland-devel
mailing list