diff options
author | Martin Sebor <msebor@redhat.com> | 2022-01-18 17:53:20 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2022-01-18 18:04:08 -0700 |
commit | 282110ae8b54250c8dcb73afc6f30761a41e38e6 (patch) | |
tree | 6fe978653b93b63ab0b17a8859c17ef238a74d84 /gcc | |
parent | 2f714642e574c64e1c0e093cad3de6f8accb6ec7 (diff) | |
download | gcc-282110ae8b54250c8dcb73afc6f30761a41e38e6.zip gcc-282110ae8b54250c8dcb73afc6f30761a41e38e6.tar.gz gcc-282110ae8b54250c8dcb73afc6f30761a41e38e6.tar.bz2 |
Suppress valid warning [PR104103].
gcc/testsuite/ChangeLog:
PR middle-end/104103
* gcc.dg/torture/pr57147-2.c: Prune out expected warning.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr57147-2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr57147-2.c b/gcc/testsuite/gcc.dg/torture/pr57147-2.c index 036a6d0..9952e3b 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57147-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr57147-2.c @@ -17,7 +17,13 @@ static void SetNaClSwitchExpectations (void) void TestSyscall(void) { SetNaClSwitchExpectations(); + _setjmp (g_return_jmp_buf); } +/* sizeof g_return_jmp_buf is zero size but it's being passed to + a function declared to take an array of one element which might + trigger a warning. Prune it out: + { dg-prune-output "-Wstringop-overflow" } */ + /* { dg-final { scan-tree-dump-not "setjmp" "optimized" } } */ |