Skip to content

decode: Use PRIx64

小田喜陽彦 requested to merge akihiko.odaki/virglrenderer:decode into main

Apple clang version 15.0.0 emits a warning:

c -Isrc/libvirgl.a.p -Isrc -I../../source/virglrenderer/src -I../../source/virglrenderer/src/gallium/include -I../../source/virglrenderer/src/gallium/auxiliary -I../../source/virglrenderer/src/gallium/auxiliary/util -I. -I../../source/virglrenderer -I../../source/virglrenderer/src/venus -I../../source/virglrenderer/src/drm -I../../source/virglrenderer/src/drm/drm-uapi -Isrc/mesa -I../../source/virglrenderer/src/mesa -I../../source/virglrenderer/src/mesa/compat -I../../source/virglrenderer/src/mesa/pipe -I../../source/virglrenderer/src/mesa/util -I/Users/person/include -I/Users/person/source/angle/include -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -O3 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /Users/person/build/virglrenderer/config.h -DHAVE_CONFIG_H=1 -MD -MQ src/libvirgl.a.p/vrend_decode.c.o -MF src/libvirgl.a.p/vrend_decode.c.o.d -o src/libvirgl.a.p/vrend_decode.c.o -c ../../source/virglrenderer/src/vrend_decode.c ../../source/virglrenderer/src/vrend_decode.c:2024:51: error: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat] sizeof(fname), "buffer_%016lx.seed", hash)

Signed-off-by: Akihiko Odaki akihiko.odaki@gmail.com

Merge request reports

Loading