summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2020-05-15 17:24:26 +0000
committerMilian Wolff <milian.wolff@kdab.com>2020-05-18 08:59:47 +0000
commitba3ed7078acca457740139b30604649656842d91 (patch)
treed2b3baecfaafa6f5d39f9e9fb83e64162f08cebb
parent33ad832d3a5d71978cc8607d3d12a38136d3bb73 (diff)
Revert "Fix GCC warning"
This reverts commit 33ad832d3a5d71978cc8607d3d12a38136d3bb73. Reason for revert: This introduces an infinite loop Change-Id: I6cfbdfaa38d905a1537e4b5fdf2aad80031e9194 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--app/perfattributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/perfattributes.cpp b/app/perfattributes.cpp
index d13f9ac..3493d6b 100644
--- a/app/perfattributes.cpp
+++ b/app/perfattributes.cpp
@@ -25,7 +25,7 @@
PerfEventAttributes::PerfEventAttributes()
{
- *this = PerfEventAttributes{};
+ memset(this, 0, sizeof(PerfEventAttributes));
}
QDataStream &operator>>(QDataStream &stream, PerfEventAttributes &attrs)