Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created August 6, 2019 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/7d01ef090b666aa680cf3ed1e64e58fa to your computer and use it in GitHub Desktop.
Save anarsoul/7d01ef090b666aa680cf3ed1e64e58fa to your computer and use it in GitHub Desktop.
[22/65] Compiling C object 'src/gallium/drivers/lima/8cb9996@@lima@sta/ir_gp_nir.c.o'.
../src/gallium/drivers/lima/ir/gp/nir.c: In function ‘gpir_compile_nir’:
../src/gallium/drivers/lima/ir/gp/nir.c:473:36: warning: passing argument 3 of ‘gpir_print_shader_db’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
473 | gpir_print_shader_db(nir, comp, debug);
| ^~~~~
../src/gallium/drivers/lima/ir/gp/nir.c:402:62: note: expected ‘struct pipe_debug_callback *’ but argument is of type ‘const struct pipe_debug_callback *’
402 | struct pipe_debug_callback *debug)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
[38/65] Compiling C object 'src/gallium/drivers/lima/8cb9996@@lima@sta/ir_pp_nir.c.o'.
In file included from ../src/gallium/auxiliary/os/os_thread.h:41,
from ../src/gallium/drivers/lima/lima_screen.h:32,
from ../src/gallium/drivers/lima/ir/lima_ir.h:28,
from ../src/gallium/drivers/lima/ir/pp/ppir.h:31,
from ../src/gallium/drivers/lima/ir/pp/nir.c:33:
../src/gallium/drivers/lima/ir/pp/nir.c: In function ‘ppir_print_shader_db’:
../src/gallium/drivers/lima/ir/pp/nir.c:584:23: warning: passing argument 1 of ‘_pipe_debug_message’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
584 | pipe_debug_message(debug, SHADER_INFO, "%s", shaderdb);
| ^~~~~
../src/util/u_debug.h:269:27: note: in definition of macro ‘pipe_debug_message’
269 | _pipe_debug_message(cb, &id, \
| ^~
../src/util/u_debug.h:279:32: note: expected ‘struct pipe_debug_callback *’ but argument is of type ‘const struct pipe_debug_callback *’
279 | struct pipe_debug_callback *cb,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment