From: Tom de Vries Date: Wed, 15 Nov 2017 15:00:59 +0000 (+0000) Subject: Compile strncpy-fix-1.c with -Wno-stringop-truncation X-Git-Tag: basepoints/gcc-9~3362 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=519fdbb5e1709cc8ee1ddc300c97d8da9ed532a3;p=thirdparty%2Fgcc.git 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 --- 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