Skip to content

Commit

Permalink
Compile strncpy-fix-1.c with -Wno-stringop-truncation
Browse files Browse the repository at this point in the history
2017-11-15  Tom de Vries  <tom@codesourcery.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254772 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
vries committed Nov 15, 2017
1 parent 4973689 commit 11ca88d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.dg/strncpy-fix-1.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 11ca88d

Please sign in to comment.