mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 859020 - Remove the MSVC exemption for FAIL_ON_WARNINGS in dom. r=bz
This commit is contained in:
parent
14b3f5390b
commit
3a3e6ebe70
@ -515,6 +515,6 @@ AudioChannelService::GetInternalType(AudioChannelType aType,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_NOT_REACHED();
|
MOZ_NOT_REACHED("unexpected audio channel type");
|
||||||
return AUDIO_CHANNEL_INT_LAST;
|
return AUDIO_CHANNEL_INT_LAST;
|
||||||
}
|
}
|
||||||
|
@ -23,9 +23,7 @@ LIBRARY_NAME = domaudiochannel_s
|
|||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
FORCE_STATIC_LIB = 1
|
FORCE_STATIC_LIB = 1
|
||||||
EXPORT_LIBRARY = 1
|
EXPORT_LIBRARY = 1
|
||||||
ifndef _MSC_VER
|
|
||||||
FAIL_ON_WARNINGS := 1
|
FAIL_ON_WARNINGS := 1
|
||||||
endif # !_MSC_VER
|
|
||||||
|
|
||||||
CPPSRCS += \
|
CPPSRCS += \
|
||||||
AudioChannelService.cpp \
|
AudioChannelService.cpp \
|
||||||
|
@ -12,9 +12,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
LIBRARY_NAME = jsdombase_s
|
LIBRARY_NAME = jsdombase_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
FORCE_STATIC_LIB = 1
|
FORCE_STATIC_LIB = 1
|
||||||
ifndef _MSC_VER
|
|
||||||
FAIL_ON_WARNINGS := 1
|
FAIL_ON_WARNINGS := 1
|
||||||
endif # !_MSC_VER
|
|
||||||
|
|
||||||
EXTRA_COMPONENTS = \
|
EXTRA_COMPONENTS = \
|
||||||
SiteSpecificUserAgent.js \
|
SiteSpecificUserAgent.js \
|
||||||
|
@ -390,7 +390,7 @@ nsScreen::MozLockOrientation(const Sequence<nsString>& aOrientations,
|
|||||||
|
|
||||||
// This is only for compilers that don't understand that the previous switch
|
// This is only for compilers that don't understand that the previous switch
|
||||||
// will always return.
|
// will always return.
|
||||||
MOZ_NOT_REACHED();
|
MOZ_NOT_REACHED("unexpected lock orientation permission value");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -392,8 +392,10 @@ Key::EncodeNumber(double aFloat, uint8_t aType)
|
|||||||
|
|
||||||
Float64Union pun;
|
Float64Union pun;
|
||||||
pun.d = aFloat;
|
pun.d = aFloat;
|
||||||
|
// Note: The subtraction from 0 below is necessary to fix
|
||||||
|
// MSVC build warning C4146 (negating an unsigned value).
|
||||||
uint64_t number = pun.u & PR_UINT64(0x8000000000000000) ?
|
uint64_t number = pun.u & PR_UINT64(0x8000000000000000) ?
|
||||||
-pun.u :
|
(0 - pun.u) :
|
||||||
(pun.u | PR_UINT64(0x8000000000000000));
|
(pun.u | PR_UINT64(0x8000000000000000));
|
||||||
|
|
||||||
number = NS_SWAP64(number);
|
number = NS_SWAP64(number);
|
||||||
@ -416,9 +418,11 @@ Key::DecodeNumber(const unsigned char*& aPos, const unsigned char* aEnd)
|
|||||||
aPos += sizeof(number);
|
aPos += sizeof(number);
|
||||||
|
|
||||||
Float64Union pun;
|
Float64Union pun;
|
||||||
|
// Note: The subtraction from 0 below is necessary to fix
|
||||||
|
// MSVC build warning C4146 (negating an unsigned value).
|
||||||
pun.u = number & PR_UINT64(0x8000000000000000) ?
|
pun.u = number & PR_UINT64(0x8000000000000000) ?
|
||||||
(number & ~PR_UINT64(0x8000000000000000)) :
|
(number & ~PR_UINT64(0x8000000000000000)) :
|
||||||
-number;
|
(0 - number);
|
||||||
|
|
||||||
return pun.d;
|
return pun.d;
|
||||||
}
|
}
|
||||||
|
@ -12,9 +12,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
LIBRARY_NAME = dom_indexeddb_s
|
LIBRARY_NAME = dom_indexeddb_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
FORCE_STATIC_LIB = 1
|
FORCE_STATIC_LIB = 1
|
||||||
ifndef _MSC_VER
|
|
||||||
FAIL_ON_WARNINGS := 1
|
FAIL_ON_WARNINGS := 1
|
||||||
endif # !_MSC_VER
|
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
AsyncConnectionHelper.cpp \
|
AsyncConnectionHelper.cpp \
|
||||||
|
@ -12,9 +12,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
LIBRARY_NAME = dom_network_s
|
LIBRARY_NAME = dom_network_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
FORCE_STATIC_LIB = 1
|
FORCE_STATIC_LIB = 1
|
||||||
ifndef _MSC_VER
|
|
||||||
FAIL_ON_WARNINGS := 1
|
FAIL_ON_WARNINGS := 1
|
||||||
endif # !_MSC_VER
|
|
||||||
|
|
||||||
EXTRA_COMPONENTS = \
|
EXTRA_COMPONENTS = \
|
||||||
TCPSocket.js \
|
TCPSocket.js \
|
||||||
|
@ -109,7 +109,7 @@ TCPSocketParent::RecvData(const SendableData& aData)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
MOZ_NOT_REACHED();
|
MOZ_NOT_REACHED("unexpected SendableData type");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -12,9 +12,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
LIBRARY_NAME = dom_power_s
|
LIBRARY_NAME = dom_power_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
FORCE_STATIC_LIB = 1
|
FORCE_STATIC_LIB = 1
|
||||||
ifndef _MSC_VER
|
|
||||||
FAIL_ON_WARNINGS := 1
|
FAIL_ON_WARNINGS := 1
|
||||||
endif # !_MSC_VER
|
|
||||||
|
|
||||||
include $(topsrcdir)/dom/dom-config.mk
|
include $(topsrcdir)/dom/dom-config.mk
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ PowerManagerService::Reboot()
|
|||||||
// To synchronize any unsaved user data before rebooting.
|
// To synchronize any unsaved user data before rebooting.
|
||||||
SyncProfile();
|
SyncProfile();
|
||||||
hal::Reboot();
|
hal::Reboot();
|
||||||
MOZ_NOT_REACHED();
|
MOZ_NOT_REACHED("hal::Reboot() shouldn't return");
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ PowerManagerService::PowerOff()
|
|||||||
// To synchronize any unsaved user data before powering off.
|
// To synchronize any unsaved user data before powering off.
|
||||||
SyncProfile();
|
SyncProfile();
|
||||||
hal::PowerOff();
|
hal::PowerOff();
|
||||||
MOZ_NOT_REACHED();
|
MOZ_NOT_REACHED("hal::PowerOff() shouldn't return");
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ PowerManagerService::Restart()
|
|||||||
sync();
|
sync();
|
||||||
#endif
|
#endif
|
||||||
_exit(0);
|
_exit(0);
|
||||||
MOZ_NOT_REACHED();
|
MOZ_NOT_REACHED("_exit() shouldn't return");
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user