Build fail with -Werror=format-security

Bug #868117 reported by Nobuhiro Iwamatsu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iSight Firmware Tools
New
Undecided
Unassigned

Bug Description

Build fail with -Werror=format-security.

-----
export.c: In function ‘write_line’:
export.c:94:3: warning: format ‘%i’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
export.c: In function ‘export’:
export.c:125:25: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
export.c: In function ‘main’:
export.c:206:10: error: format not a string literal and no format arguments [-Werror=format-security]
export.c: In function ‘export’:
export.c:168:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
cc1: some warnings being treated as errors
-----

Tags: patch
Revision history for this message
Nobuhiro Iwamatsu (iwamatsu) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.