Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/sys/external/bsd/drm/dist/shared-core Pull up following r...
details: https://anonhg.NetBSD.org/src/rev/d35f0f3b9850
branches: netbsd-9
changeset: 454591:d35f0f3b9850
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 22 12:34:06 2019 +0000
description:
Pull up following revision(s) (requested by hauke in ticket #223):
sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.5
Deal with gcc's "warning: this statement may fall through
[-Wimplicit-fallthrough=3D]" by adding the missing KNF FALLTHROUGH
comments.
christos@ approved.
diffstat:
sys/external/bsd/drm/dist/shared-core/savage_state.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r 39e0656f9f97 -r d35f0f3b9850 sys/external/bsd/drm/dist/shared-core/savage_state.c
--- a/sys/external/bsd/drm/dist/shared-core/savage_state.c Sun Sep 22 12:30:15 2019 +0000
+++ b/sys/external/bsd/drm/dist/shared-core/savage_state.c Sun Sep 22 12:34:06 2019 +0000
@@ -297,6 +297,7 @@
case SAVAGE_PRIM_TRILIST_201:
reorder = 1;
prim = SAVAGE_PRIM_TRILIST;
+ /* FALLTHROUGH */
case SAVAGE_PRIM_TRILIST:
if (n % 3 != 0) {
DRM_ERROR("wrong number of vertices %u in TRILIST\n",
@@ -434,6 +435,7 @@
case SAVAGE_PRIM_TRILIST_201:
reorder = 1;
prim = SAVAGE_PRIM_TRILIST;
+ /* FALLTHROUGH */
case SAVAGE_PRIM_TRILIST:
if (n % 3 != 0) {
DRM_ERROR("wrong number of vertices %u in TRILIST\n",
@@ -555,6 +557,7 @@
case SAVAGE_PRIM_TRILIST_201:
reorder = 1;
prim = SAVAGE_PRIM_TRILIST;
+ /* FALLTHROUGH */
case SAVAGE_PRIM_TRILIST:
if (n % 3 != 0) {
DRM_ERROR("wrong number of indices %u in TRILIST\n", n);
@@ -693,6 +696,7 @@
case SAVAGE_PRIM_TRILIST_201:
reorder = 1;
prim = SAVAGE_PRIM_TRILIST;
+ /* FALLTHROUGH */
case SAVAGE_PRIM_TRILIST:
if (n % 3 != 0) {
DRM_ERROR("wrong number of indices %u in TRILIST\n", n);
@@ -1060,7 +1064,7 @@
DMA_FLUSH();
return -EINVAL;
}
- /* fall through */
+ /* FALLTHROUGH */
case SAVAGE_CMD_DMA_PRIM:
case SAVAGE_CMD_VB_PRIM:
if (!first_draw_cmd)
Home |
Main Index |
Thread Index |
Old Index