Silence a MSVC warning.
This commit is contained in:
@@ -65,6 +65,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER((char)(-1) > 0) // -funsigned-char
|
|||||||
# pragma warning(error: 4805)
|
# pragma warning(error: 4805)
|
||||||
# pragma warning(disable: 4244) // -Wconversion
|
# pragma warning(disable: 4244) // -Wconversion
|
||||||
# pragma warning(disable: 4267) // -Wconversion
|
# pragma warning(disable: 4267) // -Wconversion
|
||||||
|
# pragma warning(disable: 4820) // padding added after data member
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// FIXME - quick hack for arm-wince-gcc-3.4 (Debian pocketpc-*.deb packages)
|
// FIXME - quick hack for arm-wince-gcc-3.4 (Debian pocketpc-*.deb packages)
|
||||||
|
|||||||
+2
-1
@@ -1365,7 +1365,8 @@ void PackMachBase<T>::pack1(OutputFile *const fo, Filter &/*ft*/) // generate e
|
|||||||
mhdro = mhdri;
|
mhdro = mhdri;
|
||||||
if (my_filetype==Mach_header::MH_EXECUTE) {
|
if (my_filetype==Mach_header::MH_EXECUTE) {
|
||||||
memcpy(&mhdro, stub_main, sizeof(mhdro));
|
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
|
mhdro.flags |= Mach_header::MH_BINDATLOAD; // DT_BIND_NOW
|
||||||
}
|
}
|
||||||
unsigned pos = sizeof(mhdro);
|
unsigned pos = sizeof(mhdro);
|
||||||
|
|||||||
Reference in New Issue
Block a user