glsl: Annotate _mesa_glsl_error() with PRINTFLIKE
authorCaio Oliveira <caio.oliveira@intel.com>
Wed, 13 Sep 2023 07:41:43 +0000 (00:41 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 15 Sep 2023 00:45:05 +0000 (00:45 +0000)
commitea998ddd348b614b9c1f39a90cc6476534b3adcc
tree67971174c3de283323b35aa703a6ad481f33a926
parent2db04de6df1ae344adad98c77f348b952a871d0d
glsl: Annotate _mesa_glsl_error() with PRINTFLIKE

And fix all the errors it found.

Note that for the unsized array error, we will print the
toplevel type -- so that the fact that an inner array is
unsized can be seen.

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25200>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/glsl_parser.yy
src/compiler/glsl/glsl_parser_extras.h