development/cmocka: Fixed build with gcc-5.2.0.

Signed-off-by: David Spencer <baildon.research@googlemail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Spencer 2015-12-11 17:46:06 +00:00 committed by Willy Sudiarto Raharjo
parent 96fab913f7
commit 48acc286e9

View file

@ -69,6 +69,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix for gcc-5.2.0
# "ISO C does not support __FUNCTION__ predefined identifier"
sed -i -e 's/ -pedantic -pedantic-errors//' \
cmake/Modules/DefineCompilerFlags.cmake
mkdir -p build
cd build
cmake \