mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 16:00:24 +01:00
osmesa: Replace default case FALLTHROUGH annotation by following return
Avoids warning about the annotation with GCC 10:
../src/gallium/frontends/osmesa/osmesa.c: In function ‘osmesa_choose_format’:
../src/util/compiler.h:84:21: warning: attribute ‘fallthrough’ not preceding a case label or default label
84 | #define FALLTHROUGH __attribute__((fallthrough))
| ^~~~~~~~~~~~~
../src/gallium/frontends/osmesa/osmesa.c:316:7: note: in expansion of macro ‘FALLTHROUGH’
316 | FALLTHROUGH;
| ^~~~~~~~~~~
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10220>
This commit is contained in:
parent
2391ffc9d4
commit
bf480cc9c2
1 changed files with 1 additions and 2 deletions
|
|
@ -313,9 +313,8 @@ osmesa_choose_format(GLenum format, GLenum type)
|
|||
return PIPE_FORMAT_NONE;
|
||||
return PIPE_FORMAT_B5G6R5_UNORM;
|
||||
default:
|
||||
FALLTHROUGH;
|
||||
return PIPE_FORMAT_NONE;
|
||||
}
|
||||
return PIPE_FORMAT_NONE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue