Module: Mesa
Branch: main
Commit: 41af9bc0a55a3f4892434dbbe48e55ada1857436
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=41af9bc0a55a3f4892434dbbe48e55ada1857436

Author: Yonggang Luo <[email protected]>
Date:   Sun Aug  7 21:20:00 2022 +0800

nine: Fixes compile of nine_pipe.h with clang
../../src/gallium/frontends/nine/nine_pipe.h:377:9: error: unannotated 
fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        default:
        ^
../../src/gallium/frontends/nine/nine_pipe.h:377:9: note: insert 'break;' to 
avoid fall-through
        default:

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: David Heidelberg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18024>

---

 src/gallium/frontends/nine/nine_pipe.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/frontends/nine/nine_pipe.h 
b/src/gallium/frontends/nine/nine_pipe.h
index 1701c671349..207945c48a9 100644
--- a/src/gallium/frontends/nine/nine_pipe.h
+++ b/src/gallium/frontends/nine/nine_pipe.h
@@ -374,6 +374,7 @@ d3d9_to_pipe_format_checked(struct pipe_screen *screen,
                 return PIPE_FORMAT_NONE;
             if (format_check_internal(PIPE_FORMAT_R8G8B8X8_UNORM))
                 return PIPE_FORMAT_R8G8B8X8_UNORM;
+            break;
         default:
             break;
     }

Reply via email to