]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Darwin, testsuite] Fix Wnonnull on Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 19 Oct 2019 07:44:49 +0000 (07:44 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 19 Oct 2019 07:44:49 +0000 (07:44 +0000)
commit2366bf60c667d968c88e7bcec2eb9e2b84d0172d
tree5009ca1e441c11a7a25bfd267edb541add82788c
parentdc7e9feb19598ea98afb14b18507562211d55349
[Darwin, testsuite] Fix Wnonnull on Darwin.

Darwin does not mark entries in string.h with nonnull attributes
so the test fails.  Since the purpose of the test is to check that
the warnings are issued for an inlined function, not that the target
headers are marked up, we can provide marked up headers for Darwin.

gcc/testsuite/ChangeLog:

2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/Wnonnull.c: Add attributed function declarations for
memcpy and strlen for Darwin.

From-SVN: r277202
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wnonnull.c