I must admit that I was astonished as well but that's what the the gcc11-Wno-format-security.patch
ist doing:
When adding -Wno-format, also add -Wno-format-security
I am pretty sure that the setting of -Werror=format-security
in /etc/makepkg.conf
supersedes the -Wno-format-security
setting applied by the patch.
Or, in other words, gcc
, after applying the patch, is probably run with both -Wno-format-security
AND -Werror=format-security
- in that situation, -Werror=format-security
prevails.
Pinned Comments
DAC324 commented on 2021-09-17 08:04 (UTC)
In addition to the jamespharvey20's sticky comment: The current GCC 12 versions are labelled "Experimental" for a reason. Development is ongoing, and there are still significant bugs. Hence, it is not recommended to use GCC 12 as a daily driver or on production systems.
At the moment, it is not even possible to build a working Linux kernel with GCC 12, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 .
jamespharvey20 commented on 2017-02-15 04:30 (UTC) (edited on 2017-02-15 11:01 (UTC) by jamespharvey20)