提交 00ea7d96 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #349 from morphis/f/fix-comp-errors-armhf

Fix compilation errors on armhf
......@@ -58,7 +58,7 @@ void BinaryWriter::write_uint16(std::uint16_t value) {
break;
}
*reinterpret_cast<std::uint16_t*>(&(*current_)) = v;
memcpy(&(*current_), &v, sizeof(std::uint16_t));
current_ += sizeof(v);
}
......@@ -77,8 +77,7 @@ void BinaryWriter::write_uint32(std::uint32_t value) {
default:
break;
}
*reinterpret_cast<std::uint32_t*>(&(*current_)) = v;
memcpy(&(*current_), &v, sizeof(std::uint32_t));
current_ += sizeof(v);
}
......
......@@ -16,8 +16,11 @@
#include "anbox/graphics/emugl/RenderThreadInfo.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
#include "external/android-emugl/shared/emugl/common/lazy_instance.h"
#include "external/android-emugl/shared/emugl/common/thread_store.h"
#pragma GCC diagnostic pop
namespace {
class ThreadInfoStore : public ::emugl::ThreadStore {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册