summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-10-17 15:57:42 -0700
committerThiago Macieira <thiago.macieira@intel.com>2018-11-08 15:19:48 +0000
commita0907e6ac1deee086c04a8987ad76fc2c78f65ab (patch)
treec3d6778319ab6b2b93c56d594cb6d740d60b4c6c
parente7998dc187cf8f1218711ac963c441afbea1577c (diff)
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>
-rw-r--r--src/corelib/serialization/qcborvalue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/serialization/qcborvalue.h b/src/corelib/serialization/qcborvalue.h
index 6d9ed0810a..105af1ba73 100644
--- a/src/corelib/serialization/qcborvalue.h
+++ b/src/corelib/serialization/qcborvalue.h
@@ -71,7 +71,7 @@ class QCborStreamWriter;
struct QCborParserError
{
qint64 offset = 0;
- QCborError error = {};
+ QCborError error = { QCborError::NoError };
QString errorString() const { return error.toString(); }
};