dali compiled with -Werror, but there are a lot of new clang warnings.
Disable specific warnings to allow code compilation
template <typename T>
inline T* GetDataTypedPtr()
{
- Dali::Vector< char >* data = mData.Release();
+ Dali::Vector< uint8_t >* data = mData.Release();
mData = data;
return reinterpret_cast<T*>( &data->operator[]( 0 ) );
}
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
+if echo "$CFLAGS" | grep -q -- '-Wl,--as-needed'; then
+ LDFLAGS="${LDFLAGS} -Wl,--as-needed"
+fi
+CFLAGS="$(echo $CFLAGS | sed -e 's/-Wl,--as-needed//g')"
+CXXFLAGS="$(echo $CXXFLAGS | sed -e 's/-Wl,--as-needed//g') -Wno-sign-conversion -Wno-mismatched-tags -Wno-inconsistent-missing-override -Wno-string-conversion"
+
./configure \
--program-prefix=%{?_program_prefix} \
--prefix=%{_prefix} \