From bf2f5c8979022da8fc521e5e7e488e77478194f2 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Tue, 5 Dec 2017 10:03:56 +0000 Subject: Avoid -Werror=format-overflow error in dbxout.c (dbxout_block) on 64-bit Solaris/SPARC * dbxout.c (dbxout_block): Grow buf to 30 bytes. From-SVN: r255406 --- gcc/dbxout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/dbxout.c') diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 6976388315e..290f11b3c46 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -3844,7 +3844,7 @@ dbxout_block (tree block, int depth, tree args, int parent_blocknum) /* If we emitted any vars and didn't output any LBRAC/RBRAC, either at this level or any lower level, we need to emit an empty LBRAC/RBRAC pair now. */ - char buf[20]; + char buf[30]; const char *scope_start; ret = true; -- cgit v1.2.3