mapi: Fix a couple of warning in generated code
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 22 May 2020 21:37:38 +0000 (14:37 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Tue, 26 May 2020 19:46:18 +0000 (12:46 -0700)
commit12653beacba00146f5bf31816a7c1dc8e51735ff
treea2777e7d54011d2688e0df61304db2e06203b485
parent8341f30f1ea87a22624031c2f5f670d1b9f8678a
mapi: Fix a couple of warning in generated code

safe_mul may not be used and clang doesn't understand the "optimize"
attribute.

src/mapi/glapi/gen/marshal_generated0.c:1216:16: warning: unknown
attribute 'optimize' ignored [-Wunknown-attributes]

src/mapi/glapi/gen/marshal_generated0.c:36:19: warning: unused
function 'safe_mul' [-Wunused-function]

Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
src/mapi/glapi/gen/gl_marshal.py