Bug 1425825
Summary: | gcc -Werror=format-security -Wall not reporting errors | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Frantisek Kluknavsky <fkluknav> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | davejohansen, jakub, jwakely, law, mpolacek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-07 19:44:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Frantisek Kluknavsky
2017-02-22 14:25:12 UTC
Filed upstream: PR79677. In the mean time, use -Wformat-security -Werror=format-security instead of just -Werror=format-security and then it will work properly. "-Wformat-security -Werror=format-security" gives "error: -Wformat-security ignored without -Wformat" "-Wformat -Wformat-security -Werror=format-security" works. Fun note: Fedora currently uses -Wall -Werror=format-security. While it is possible to get warnings with a right combination of flags (if you know...), it is a very strange feeling to fix rpm build errors by adding another -Wall. Surprisingly satisfying ;-) Fixed in F26, not going to backport. |