Bug 103513

Summary: [build failure] radv_shader.c:683:2: error: format not a string literal and no format arguments [-Werror=format-security]
Product: Mesa Reporter: Fabio Pedretti <pedretti.fabio>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: alex, bas
Version: git   
Hardware: All   
OS: Linux (All)   
i915 platform: i915 features:

Description Fabio Pedretti 2017-10-30 08:18:57 UTC
I am getting this radv error while building mesa on Ubuntu:

../../../../../src/amd/vulkan/radv_shader.c: In function ‘radv_shader_dump_stats’:
../../../../../src/amd/vulkan/radv_shader.c:683:2: error: format not a string literal and no format arguments [-Werror=format-security]
  fprintf(file, buf->buf);
cc1: some warnings being treated as errors

Full build log here:

I didn't bisect, but I suspect this commit introduced the error:

author     Alex Smith <asmith@feralinteractive.com>
committer  Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
radv: Implement VK_AMD_shader_info

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.