Compile strncpy-fix-1.c with -Wno-stringop-truncation
authorTom de Vries <tom@codesourcery.com>
Wed, 15 Nov 2017 15:00:59 +0000 (15:00 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 15 Nov 2017 15:00:59 +0000 (15:00 +0000)
2017-11-15  Tom de Vries  <tom@codesourcery.com>

* gcc.dg/strncpy-fix-1.c: Add -Wno-stringop-truncation to dg-options.

From-SVN: r254772

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strncpy-fix-1.c

index 45a2a2fcba909ed3339e2ad59fdc3a1c634b1b6f..a805be4eb143d7ed03f76a373a2a4ba4eb1e8cff 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-15  Tom de Vries  <tom@codesourcery.com>
+
+       * gcc.dg/strncpy-fix-1.c: Add -Wno-stringop-truncation to dg-options.
+
 2017-11-15  Dominique d'Humieres  <dominiq@lps.ens.fr>
 
        * gcc.target/i386/pr81706.c: Adjust asm for darwin.
index b8bc916e00896f74e544c1bb5ad0f046b9993cf5..b4fd4aa4877a007a546abe65b68e9121966516c0 100644 (file)
@@ -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 <string.h>
 void