OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3876bc2
)
radeon: add fallthrough annotation
author
Eric Engestrom
<eric@engestrom.ch>
Sun, 30 Jul 2017 20:34:16 +0000
(21:34 +0100)
committer
Eric Engestrom
<eric.engestrom@imgtec.com>
Tue, 1 Aug 2017 17:29:28 +0000
(18:29 +0100)
GCC 7 started warning when a switch case has neither a `break` nor
a "fallthrough" comment.
Let's be explicit that we meant to fall through here.
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
radeon/radeon_surface.c
patch
|
blob
|
history
diff --git
a/radeon/radeon_surface.c
b/radeon/radeon_surface.c
index
965be24
..
04df77d
100644
(file)
--- a/
radeon/radeon_surface.c
+++ b/
radeon/radeon_surface.c
@@
-2503,6
+2503,7
@@
static int radeon_surface_sanity(struct radeon_surface_manager *surf_man,
if (surf->npix_y > 1) {
return -EINVAL;
}
+ /* fallthrough */
case RADEON_SURF_TYPE_2D:
if (surf->npix_z > 1) {
return -EINVAL;