Summary: | net-libs/libnipper-0.12.6-r1 : /.../report-table.cpp: error: format not a string literal and no format arguments [-Werror=format-s | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Mike Auty (RETIRED) <ikelos> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 713576 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 net-libs:libnipper-0.12.6-r1:20200324-082202.log temp.tbz2 libnipper-format-security.patch |
Description
Toralf Förster
![]() Created attachment 625012 [details]
emerge-info.txt
Created attachment 625014 [details]
emerge-history.txt
Created attachment 625016 [details]
environment
Created attachment 625018 [details]
etc.portage.tbz2
Created attachment 625020 [details]
logs.tbz2
Created attachment 625022 [details]
net-libs:libnipper-0.12.6-r1:20200324-082202.log
Created attachment 625024 [details]
temp.tbz2
Created attachment 625882 [details, diff]
libnipper-format-security.patch
I couldn't recreate this when adding CFLAGS="-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat", so I don't know if my toolchain would need compiling differently, but I think I've understood the error anyway. Essentially there's a variable that could be changed which doesn't contain a format argument. Since in the code the value doesn't ever actually change, I've made the entire thing a fixed const, which hopefully then will be accepted by the compiler.
Is there any way to easily test this patch in your build system, or let me know what changes I'd need to make to my system to be able to reproduce the error?
|