Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm/dist/shared-core Deal with gcc's "warni...



details:   https://anonhg.NetBSD.org/src/rev/d7293d660c3c
branches:  trunk
changeset: 458606:d7293d660c3c
user:      hauke <hauke%NetBSD.org@localhost>
date:      Fri Aug 02 14:55:57 2019 +0000

description:
Deal with gcc's "warning: this statement may fall through
[-Wimplicit-fallthrough=]" 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 388d01bdbd60 -r d7293d660c3c sys/external/bsd/drm/dist/shared-core/savage_state.c
--- a/sys/external/bsd/drm/dist/shared-core/savage_state.c      Fri Aug 02 12:07:24 2019 +0000
+++ b/sys/external/bsd/drm/dist/shared-core/savage_state.c      Fri Aug 02 14:55:57 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