mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
nv30: Fix "array subscript is below array bounds" compiler warning
gcc6 does not like the trick where we point to one entry before the array start and then start a while with a pre-increment. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
110ef733dc
commit
d7dfd4cb51
1 changed files with 1 additions and 2 deletions
|
|
@ -663,8 +663,7 @@ nv30_transfer_rect(struct nv30_context *nv30, enum nv30_transfer_filter filter,
|
|||
{}
|
||||
};
|
||||
|
||||
method = methods - 1;
|
||||
while ((++method)->possible) {
|
||||
for (method = methods; method->possible; method++) {
|
||||
if (method->possible(nv30, filter, src, dst)) {
|
||||
method->execute(nv30, filter, src, dst);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue