This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/22495] remote-sim.c should be built with -Wno-format-nonliteral


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

--- Comment #5 from Pavel I. Kryukov <kryukov at frtk dot ru> ---
Clang still refuses to build remote-sim.c, could anyone please take a look?

Command line:
> ./configure --target=mipsel-unknown-linux-gnu --with-system-zlib && make && make install

Clang command line and output:

clang++-5.0 -x c++ -std=gnu++11 -g -O2   -I. -I. -I./common -I./config
-DLOCALEDIR="\"/home/travis/build/pavelkryukov/gnu-binutils-clang/binutils-gdb/cross/mips/share/locale\""
-DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. 
-I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber 
-I./gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.7
-I/usr/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wunused-value
-Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body
-Wno-sign-compare -Wno-narrowing -Wno-mismatched-tags -Wformat-nonliteral
-Werror -c -o remote-sim.o -MT remote-sim.o -MMD -MP -MF ./.deps/remote-sim.Tpo
remote-sim.c
remote-sim.c:386:34: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  vfprintf_filtered (gdb_stdout, format, args);
                                 ^~~~~~
remote-sim.c:395:34: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  vfprintf_filtered (gdb_stdout, format, ap);
                                 ^~~~~~
remote-sim.c:403:34: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  vfprintf_filtered (gdb_stderr, format, ap);
                                 ^~~~~~
remote-sim.c:414:11: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  verror (format, args);
          ^~~~~~
4 errors generated.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]