]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Squash glibc warning about _BSD_SOURCE being deprecated tests.
authorMark Wielaard <mark@klomp.org>
Fri, 22 Jan 2016 13:49:22 +0000 (13:49 +0000)
committerMark Wielaard <mark@klomp.org>
Fri, 22 Jan 2016 13:49:22 +0000 (13:49 +0000)
commitdcb119cf4141503743930d4c4cae3f5289a36d9f
treeeb698136018c2ae4ebaf31dd247b5c705d404ea0
parente484dcb4ff2723a12d6e8fce946ec1a13a99a815
Squash glibc warning about _BSD_SOURCE being deprecated tests.

glibc 2.20 deprecated _BSD_SOURCE and _SVID_SOURCE and now requires
_DEFAULT_SOURCE to be defined instead. Add _DEFAULT_SOURCE define to
prevent warnings like:

In file included from /usr/include/stdio.h:27:0,
                 from stack_switch.c:5:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^

See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15768
memcheck/tests/linux/stack_switch.c