OSX build errors

Description

First build problem is a QT 5.6 bug:
/Users/stefan/git/LibrePilot/tools/qt-5.6.0/5.6/clang_64/lib/QtCore.framework/Headers/qmap.h:642:27: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
return n ? n->value : adefaultValue;
^~~~~~~~~~~~~
/Users/stefan/git/LibrePilot/ground/gcs/src/libs/utils/svgimageprovider.cpp:48:42: note: in instantiation of member function 'QMap<QString, QSvgRenderer *>::value' requested here
QSvgRenderer *renderer = m_renderers.value(svgFile);
^
/Users/stefan/git/LibrePilot/tools/qt-5.6.0/5.6/clang_64/lib/QtCore.framework/Headers/qmap.h:382:44: note: binding reference variable 'adefaultValue' here
const T value(const Key &key, const T &defaultValue = T()) const;
^ ~~~
1 error generated.`

Can be worked around by explicitly passing NULL as the second parameter.

Second bug:
./accelgyrosettings.h:227:67: error: all paths through this function will call itself [-Werror,-Winfinite-recursion]
/DEPRECATED/ void setaccel_bias(quint32 index, float value) { setaccel_bias(index, static_cast<float>(value)); }

The uavobjgenerator generates incorrect deprecated setters.

Environment

None

Activity

Show:
Stefan Karlsson
April 4, 2016, 10:16 PM

Fixed in next.

Assignee

Stefan Karlsson

Reporter

Stefan Karlsson

Labels

None

Components

Fix versions

Affects versions

Priority

Medium
Configure