mesa/src/egl
Rudi Heitbaum 1acc96b8cb mesa: retain const qualifier from pointer
Since glibc-2.43:

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.

https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html

Resolves the following warnings:
    src/mesa/glapi/glapi/gen/enums.c: In function '_mesa_enum_to_string':
    src/mesa/glapi/glapi/gen/enums.c:7799:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     7799 |    elt = bsearch(& nr, enum_string_table_offsets,
          |        ^

    ../src/egl/main/egldispatchstubs.c: In function 'FindProcIndex':
    ../src/egl/main/egldispatchstubs.c:52:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       52 |       bsearch(name, __EGL_DISPATCH_FUNC_NAMES, __EGL_DISPATCH_COUNT,
          |       ^~~~~~~

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39707>
2026-02-05 22:01:56 +00:00
..
drivers zink/kopper: Allow surface creation for Pixmaps (non-window surfaces) 2026-01-30 19:00:54 +00:00
generate mesa: move src/mapi to src/mesa/glapi 2025-08-06 20:35:26 +00:00
main mesa: retain const qualifier from pointer 2026-02-05 22:01:56 +00:00
wayland meson: use the wayland module 2025-09-22 16:35:26 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
egl-entrypoint-check.py egl: Apply autopep8. 2025-02-21 02:50:56 +00:00
egl-glvnd-symbols.txt egl: export GL-CL interop functions from libEGL_mesa.so 2025-06-08 13:20:47 -04:00
egl-glvnd.sym egl: export GL-CL interop functions from libEGL_mesa.so 2025-06-08 13:20:47 -04:00
egl-symbols.txt egl/dri2: Implement the new flush method 2022-11-02 18:11:41 +00:00
egl.sym egl/meson: Specify which symbols to export 2025-01-15 23:18:36 +00:00
meson.build egl/haiku/meson: Include shared libglapi code for dispatch functions 2026-01-02 17:26:30 +00:00