https://sourceware.org/bugzilla/show_bug.cgi?id=26934

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick.alcock at oracle dot com
            Summary|[2.36 Regression            |[2.36 Regression]
                   |                            |ctf-dump.c:406:4: error:
                   |                            |format not a string literal
                   |                            |and no format arguments
                   |                            |[-Werror=format-security]
   Target Milestone|---                         |2.36

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-4 libctf]$ gcc -DHAVE_CONFIG_H -I.
-I/export/linux/src/binutils/binutils/libctf -D_GNU_SOURCE
-I/export/linux/src/binutils/binutils/libctf
-I/export/linux/src/binutils/binutils/libctf/../include
-I/export/linux/src/binutils/binutils/libctf/../bfd -I../bfd -DNOBFD=0
-std=gnu99 -Wall -W -Wall -Wno-narrowing -Wwrite-strings
-Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -pedantic -Wno-long-long -O2 -g -fcf-protection
-fprofile-generate -flto=jobserver -MT libctf_la-ctf-dump.lo -MD -MP -MF
.deps/libctf_la-ctf-dump.Tpo -c
/export/linux/src/binutils/binutils/libctf/ctf-dump.c -o libctf_la-ctf-dump.o
-Werror=format-security
/export/linux/src/binutils/binutils/libctf/ctf-dump.c: In function
??ctf_dump_objts??:
/export/linux/src/binutils/binutils/libctf/ctf-dump.c:406:4: error: format not
a string literal and no format arguments [-Werror=format-security]
  406 |    if (asprintf (&typestr, ctf_errmsg (ctf_errno (fp))) < 0)
      |    ^~
cc1: some warnings being treated as errors
[hjl@gnu-4 libctf]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to