0006-Fix-compile-issue-with-gcc-9.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From e094806951ff7337b5b0c534db479e3808f153a7 Mon Sep 17 00:00:00 2001
  2. From: Allan Sandfeld Jensen <allan.jensen@qt.io>
  3. Date: Tue, 13 Nov 2018 16:00:23 +0100
  4. Subject: [PATCH] Fix compile issue with gcc 9
  5. It appears messenne_twisters in the latest libstdc++ has one more
  6. requirement before it is willing to construct with our
  7. SystemGenerator struct as an sseq provider.
  8. Change-Id: If38151d1fa6f40a80274acc26d9ed6b4ac6049fe
  9. Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
  10. Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
  11. Signed-off-by: Julien Beraud <julien.beraud@orolia.com>
  12. ---
  13. src/corelib/global/qrandom.cpp | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp
  16. index ebf9864b15..577736a867 100644
  17. --- a/src/corelib/global/qrandom.cpp
  18. +++ b/src/corelib/global/qrandom.cpp
  19. @@ -218,6 +218,7 @@ struct QRandomGenerator::SystemGenerator
  20. #endif // Q_OS_WINRT
  21. static SystemGenerator &self();
  22. + typedef quint32 result_type;
  23. void generate(quint32 *begin, quint32 *end) Q_DECL_NOEXCEPT_EXPR(FillBufferNoexcept);
  24. // For std::mersenne_twister_engine implementations that use something
  25. --
  26. 2.23.0