mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Silence a MSVC warning.
This commit is contained in:
parent
3026821f9f
commit
5d3be8da1d
|
@ -65,6 +65,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER((char)(-1) > 0) // -funsigned-char
|
|||
# pragma warning(error: 4805)
|
||||
# pragma warning(disable: 4244) // -Wconversion
|
||||
# pragma warning(disable: 4267) // -Wconversion
|
||||
# pragma warning(disable: 4820) // padding added after data member
|
||||
#endif
|
||||
|
||||
// FIXME - quick hack for arm-wince-gcc-3.4 (Debian pocketpc-*.deb packages)
|
||||
|
|
|
@ -1365,7 +1365,8 @@ void PackMachBase<T>::pack1(OutputFile *const fo, Filter &/*ft*/) // generate e
|
|||
mhdro = mhdri;
|
||||
if (my_filetype==Mach_header::MH_EXECUTE) {
|
||||
memcpy(&mhdro, stub_main, sizeof(mhdro));
|
||||
mhdro.flags &= ~Mach_header::MH_PIE; // we require fixed address
|
||||
COMPILE_TIME_ASSERT(sizeof(mhdro.flags) == sizeof(unsigned))
|
||||
mhdro.flags &= ~ (unsigned) Mach_header::MH_PIE; // we require fixed address
|
||||
mhdro.flags |= Mach_header::MH_BINDATLOAD; // DT_BIND_NOW
|
||||
}
|
||||
unsigned pos = sizeof(mhdro);
|
||||
|
|
Loading…
Reference in New Issue
Block a user