unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.53k stars 1.33k forks source link

Multiple similar warnings during compilation under Windows #1827

Open greenozon opened 1 year ago

greenozon commented 1 year ago

Using MSVC 2019 latest

C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9531): warning C5105: macro expansion producing 'defined' has undefined behavior

line #9531:

if MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS / { /

image

wtdcode commented 1 year ago

AFAIK, it's introduced from qemu code. We can fix them but not necessary.

Seems not from qemu code, I will have a look