mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-27 23:11:02 +00:00
Fix warnings
This commit is contained in:
@@ -18,7 +18,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
c_function_type* get_function() const
|
||||
c_function_type* get_c_function() const
|
||||
{
|
||||
return +[](Args... args, user_data_pointer user_data) -> ReturnType
|
||||
{
|
||||
@@ -26,6 +26,11 @@ public:
|
||||
};
|
||||
}
|
||||
|
||||
void* get_function() const
|
||||
{
|
||||
return reinterpret_cast<void*>(this->get_c_function());
|
||||
}
|
||||
|
||||
user_data_pointer get_user_data() const
|
||||
{
|
||||
return this->functor_.get();
|
||||
|
||||
@@ -2,8 +2,19 @@
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4505)
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
#define NOMINMAX
|
||||
#include <unicorn/unicorn.h>
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -353,7 +353,7 @@ namespace unicorn
|
||||
}*/
|
||||
|
||||
emulator_hook* hook_instruction(int instruction_type,
|
||||
instruction_hook_callback callback)
|
||||
instruction_hook_callback callback) override
|
||||
{
|
||||
function_wrapper<int, uc_engine*> wrapper([c = std::move(callback)](uc_engine*)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user