Commit bf480cc9 authored by Michel Dänzer's avatar Michel Dänzer Committed by Marge Bot
Browse files

osmesa: Replace default case FALLTHROUGH annotation by following return

Avoids warning about the annotation with GCC 10:

../src/gallium/frontends/osmesa/osmesa.c: In function ‘osmesa_choose_format’:
../src/util/compiler.h:84:21: warning: attribute ‘fallthrough’ not preceding a case label or default label
   84 | #define FALLTHROUGH __attribute__((fallthrough))
      |                     ^~~~~~~~~~~~~
../src/gallium/frontends/osmesa/osmesa.c:316:7: note: in expansion of macro ‘FALLTHROUGH’
  316 |       FALLTHROUGH;
      |       ^~~~~~~~~~~

Part-of: <!10220>
parent 2391ffc9
......@@ -313,9 +313,8 @@ osmesa_choose_format(GLenum format, GLenum type)
return PIPE_FORMAT_NONE;
return PIPE_FORMAT_B5G6R5_UNORM;
default:
FALLTHROUGH;
return PIPE_FORMAT_NONE;
}
return PIPE_FORMAT_NONE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment