diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-07-13 19:54:40 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-07-13 22:44:53 +0300 |
commit | 805c8b26f7261cbd6ce8f946b0911c3339114adf (patch) | |
tree | 7275795b89c7da3a327c48de707026470c9632fe /src/mbgl/util/thread.hpp | |
parent | 482b8bde6314b38c061040fe2f885bc2068014b1 (diff) | |
download | qtlocation-mapboxgl-805c8b26f7261cbd6ce8f946b0911c3339114adf.tar.gz |
Do not return a value on a "[]() -> void"
This is an undefined behavior, and it is a mystery why the
compiler was not complaining about it.
Diffstat (limited to 'src/mbgl/util/thread.hpp')
-rw-r--r-- | src/mbgl/util/thread.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/thread.hpp b/src/mbgl/util/thread.hpp index b6eb48dfb6..a0c39abad0 100644 --- a/src/mbgl/util/thread.hpp +++ b/src/mbgl/util/thread.hpp @@ -57,7 +57,7 @@ public: std::packaged_task<void ()> task(std::bind(fn, object, args...)); std::future<void> future = task.get_future(); loop->invoke(std::move(task)); - return future.get(); + future.get(); } private: |