From 842088667f44ec77ba72803542a5aee0056cc68f Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 24 Nov 2020 11:38:11 +0100 Subject: [PATCH] egl: update fallthrough comments Reviewed-by: Kristian H. Kristensen Part-of: --- src/egl/main/egldevice.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/main/egldevice.c b/src/egl/main/egldevice.c index cdb8f361acb..68ca4d2cf35 100644 --- a/src/egl/main/egldevice.c +++ b/src/egl/main/egldevice.c @@ -28,6 +28,7 @@ #ifdef HAVE_LIBDRM #include #endif +#include "util/compiler.h" #include "util/macros.h" #include "eglcurrent.h" @@ -240,7 +241,7 @@ _eglQueryDeviceStringEXT(_EGLDevice *dev, EGLint name) if (_eglDeviceSupports(dev, _EGL_DEVICE_DRM)) return dev->device->nodes[DRM_NODE_PRIMARY]; #endif - /* fall through */ + FALLTHROUGH; default: _eglError(EGL_BAD_PARAMETER, "eglQueryDeviceStringEXT"); return NULL;