[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/21096] gcc7 warnings
From: |
dilyan.palauzov at aegee dot org |
Subject: |
[Bug binutils/21096] gcc7 warnings |
Date: |
Wed, 01 Feb 2017 19:39:07 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21096
--- Comment #4 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee
dot org> ---
It works, but there is one more warning:
make[4]: Entering directory '/home/d/binutils/opcodes'
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I/git/binutils-gdb/opcodes -I. -I/git/binutils-gdb/opcodes -I../bfd
-I/git/binutils-gdb/opcodes/../include -I/git/binutils-gdb/opcodes/../bfd -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144
-Werror -g -O2 -MT tic6x-dis.lo -MD -MP -MF .deps/tic6x-dis.Tpo -c -o
tic6x-dis.lo /git/binutils-gdb/opcodes/tic6x-dis.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/git/binutils-gdb/opcodes -I.
-I/git/binutils-gdb/opcodes -I../bfd -I/git/binutils-gdb/opcodes/../include
-I/git/binutils-gdb/opcodes/../bfd -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -g -O2 -MT
tic6x-dis.lo -MD -MP -MF .deps/tic6x-dis.Tpo -c
/git/binutils-gdb/opcodes/tic6x-dis.c -o tic6x-dis.o
/git/binutils-gdb/opcodes/tic6x-dis.c: In function ‘print_insn_tic6x’:
/git/binutils-gdb/opcodes/tic6x-dis.c:706:32: error: ‘snprintf’ output may be
truncated before the last format character [-Werror=format-truncation=]
snprintf (func_unit_buf, 7, " .%c%u%s%s", func_unit_char,
^~~~~~~~~~~~
/git/binutils-gdb/opcodes/tic6x-dis.c:706:4: note: ‘snprintf’ output between 5
and 8 bytes into a destination of size 7
snprintf (func_unit_buf, 7, " .%c%u%s%s", func_unit_char,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
func_unit_side, (func_unit_cross ? "X" : ""), data_str);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1003: tic6x-dis.lo] Error 1
make[4]: Target 'all-am' not remade because of errors.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/21096] gcc7 warnings, nickc at redhat dot com, 2017/02/01
- [Bug binutils/21096] gcc7 warnings, amodra at gmail dot com, 2017/02/01
- [Bug binutils/21096] gcc7 warnings, nickc at redhat dot com, 2017/02/01
- [Bug binutils/21096] gcc7 warnings,
dilyan.palauzov at aegee dot org <=
- [Bug binutils/21096] gcc7 warnings, nickc at redhat dot com, 2017/02/02
- [Bug binutils/21096] gcc7 warnings, dilyan.palauzov at aegee dot org, 2017/02/02
- [Bug binutils/21096] gcc7 warnings, cvs-commit at gcc dot gnu.org, 2017/02/03
- [Bug binutils/21096] gcc7 warnings, nickc at redhat dot com, 2017/02/03