diff options
author | Eric Anholt <[email protected]> | 2018-02-10 10:45:18 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-02-20 20:23:57 -0800 |
commit | 7075c084fc5699d76970d2f045c8c7c668dc53d8 (patch) | |
tree | f39e8accbefaefea288ac1a7116c6c852e121bba /src/compiler/glsl | |
parent | 1b313eedb5e5da3c7ee3f62a83b66a6e097fe0d3 (diff) |
loader: Fix compiler warnings about truncating the PCI ID path.
My build was producing:
../src/loader/loader.c:121:67: warning: ā%1uā directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=]
and we can avoid this careful calculation by just using asprintf (as we do
elsewhere in the file).
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
0 files changed, 0 insertions, 0 deletions