On 28 June 2017 at 12:46, Juan A. Suarez Romero <[email protected]> wrote:
> This fixes a couple of  errors when building in Android:
>
> external/mesa3d/src/mesa/main/shaderapi.c:293:49: error: format string
> is not a string literal (potentially insecure)
> [-Werror,-Wformat-security]
>          _mesa_error(ctx, GL_INVALID_OPERATION, caller);
>                                                 ^~~~~~
> external/mesa3d/src/mesa/main/shaderapi.c:293:49: note: treat the string
> as an argument to avoid this
>          _mesa_error(ctx, GL_INVALID_OPERATION, caller);
>                                                 ^
Have you tried annotating caller as "const char * const caller"? IIRC
it was sufficient in some cases, although I'm not sure if it'll help
here.

-Emil
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to