qt5base-0004-qatomic-ppc.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. Set loadAcquire() as const
  2. Fixes powerpc build.
  3. Fetched-from: https://bugzilla.redhat.com/attachment.cgi?id=812643
  4. Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
  5. Index: qtbase-opensource-src-5.1.1/src/corelib/thread/qoldbasicatomic.h
  6. ===================================================================
  7. --- qtbase-opensource-src-5.1.1.orig/src/corelib/thread/qoldbasicatomic.h
  8. +++ qtbase-opensource-src-5.1.1/src/corelib/thread/qoldbasicatomic.h
  9. @@ -63,7 +63,7 @@ public:
  10. // Atomic API, implemented in qatomic_XXX.h
  11. int load() const { return _q_value; }
  12. - int loadAcquire() { return _q_value; }
  13. + int loadAcquire() const { return _q_value; }
  14. void store(int newValue) { _q_value = newValue; }
  15. void storeRelease(int newValue) { _q_value = newValue; }
  16. @@ -107,7 +107,7 @@ public:
  17. // Atomic API, implemented in qatomic_XXX.h
  18. T *load() const { return _q_value; }
  19. - T *loadAcquire() { return _q_value; }
  20. + T *loadAcquire() const { return _q_value; }
  21. void store(T *newValue) { _q_value = newValue; }
  22. void storeRelease(T *newValue) { _q_value = newValue; }