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)   
Whiteboard:
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:
https://launchpadlibrarian.net/343622680/buildlog_ubuntu-zesty-amd64.mesa_17.4~git1710300730.446c57~gd~z_BUILDING.txt.gz

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
https://cgit.freedesktop.org/mesa/mesa/commit/?id=de889794134e6245e08a24425a6d686a1be584b8

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.