Bug 103513 - [build failure] radv_shader.c:683:2: error: format not a string literal and no format arguments [-Werror=format-security]
Summary: [build failure] radv_shader.c:683:2: error: format not a string literal and n...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 08:18 UTC by Fabio Pedretti
Modified: 2017-10-30 10:00 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.