orc: Tests : Uses system() which is deprecated on iOS 8
@slomo
Submitted by Sebastian Dröge Link to original bug (#736785)
Description
/bin/sh ../libtool –tag=CC –mode=compile clang -DHAVE_CONFIG_H -I. -I.. -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -Wall -Werror -I.. -D_GNU_SOURCE -DORC_ENABLE_UNSTABLE_API -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -miphoneos-version-min=8.0 -Wall -g -Os -Wno-error=format-nonliteral -MT liborc_test_0.4_la-orctest.lo -MD -MP -MF .deps/liborc_test_0.4_la-orctest.Tpo -c -o liborc_test_0.4_la-orctest.lo test -f ‘orctest.c’ || echo ‘./’
orctest.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -Wall -Werror -I.. -D_GNU_SOURCE -DORC_ENABLE_UNSTABLE_API -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -miphoneos-version-min=8.0 -Wall -g -Os -Wno-error=format-nonliteral -MT liborc_test_0.4_la-orctest.lo -MD -MP -MF .deps/liborc_test_0.4_la-orctest.Tpo -c orctest.c -fno-common -DPIC -o .libs/liborc_test_0.4_la-orctest.o
orctest.c:134:9: error: ‘system’ is deprecated: first deprecated in iOS 8.0 – Use posix_spawn APIs instead. [-Werror,-Wdeprecated-declarations]
ret = system (cmd);
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/usr/include/stdlib.h:177:6: note: ‘system’ has been explicitly marked deprecated here
int system(const char *) __DARWIN_ALIAS_C(system) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0,__MAC_NA,__IPHONE_2_0,__IPHONE_8_0, “Use posix_spawn APIs instead.”);
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/usr/include/stdlib.h:177:6: note: ‘system’ has been explicitly marked deprecated here
int system(const char *) __DARWIN_ALIAS_C(system) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0,__MAC_NA,__IPHONE_2_0,__IPHONE_8_0, “Use posix_spawn APIs instead.”);