Fix warning about missing initializer for a struct member

GCC 4.8 is complaining about perfectly valid (and recommended) code but
we still support it, so...

qcborvalue.h:74:25: warning: missing initializer for member ‘QCborError::c’

Fixes: QTBUG-71222
Change-Id: If7e743cf8476463880ccfffd155e8775b6b95469
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Thiago Macieira 2018-10-17 15:57:42 -07:00
parent e7998dc187
commit a0907e6ac1

View File

@ -71,7 +71,7 @@ class QCborStreamWriter;
struct QCborParserError
{
qint64 offset = 0;
QCborError error = {};
QCborError error = { QCborError::NoError };
QString errorString() const { return error.toString(); }
};