From 519fdbb5e1709cc8ee1ddc300c97d8da9ed532a3 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 15 Nov 2017 15:00:59 +0000 Subject: [PATCH] Compile strncpy-fix-1.c with -Wno-stringop-truncation 2017-11-15 Tom de Vries * gcc.dg/strncpy-fix-1.c: Add -Wno-stringop-truncation to dg-options. From-SVN: r254772 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/strncpy-fix-1.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 45a2a2fcba90..a805be4eb143 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-15 Tom de Vries + + * gcc.dg/strncpy-fix-1.c: Add -Wno-stringop-truncation to dg-options. + 2017-11-15 Dominique d'Humieres * gcc.target/i386/pr81706.c: Adjust asm for darwin. diff --git a/gcc/testsuite/gcc.dg/strncpy-fix-1.c b/gcc/testsuite/gcc.dg/strncpy-fix-1.c index b8bc916e0089..b4fd4aa4877a 100644 --- a/gcc/testsuite/gcc.dg/strncpy-fix-1.c +++ b/gcc/testsuite/gcc.dg/strncpy-fix-1.c @@ -1,7 +1,7 @@ /* Test that use of strncpy does not result in a "value computed is not used" warning. */ /* { dg-do compile } */ -/* { dg-options "-O2 -Wall" } */ +/* { dg-options "-O2 -Wall -Wno-stringop-truncation" } */ #include void -- 2.47.2