diff options
author | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 15:59:53 +0000 |
---|---|---|
committer | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 15:59:53 +0000 |
commit | a0143317d2700f567b34638665d81e3209d1a080 (patch) | |
tree | 4afd83f22d1c7820c0a3d7bab7684b7064dfa803 /sandbox | |
parent | dcc77afba22dab793be7ce4ad9d752443a86be01 (diff) | |
download | chromium_src-a0143317d2700f567b34638665d81e3209d1a080.zip chromium_src-a0143317d2700f567b34638665d81e3209d1a080.tar.gz chromium_src-a0143317d2700f567b34638665d81e3209d1a080.tar.bz2 |
Fix DCHECK_NT macro
The expressions on both sides of the : should have the same type, in
this case void.
This fixes a Clang error.
BUG=82385
R=jschuh@chromium.org
Review URL: https://codereview.chromium.org/16101011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/win/src/sandbox_nt_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/win/src/sandbox_nt_util.h b/sandbox/win/src/sandbox_nt_util.h index 06538cd..40f261b 100644 --- a/sandbox/win/src/sandbox_nt_util.h +++ b/sandbox/win/src/sandbox_nt_util.h @@ -34,7 +34,7 @@ void __cdecl operator delete(void* memory, void* buffer, // returning a bool, while VERIFY_SUCCESS_NT expects an action returning // NTSTATUS. #ifndef NDEBUG -#define DCHECK_NT(condition) { (condition) ? 0 : __debugbreak(); } +#define DCHECK_NT(condition) { (condition) ? (void)0 : __debugbreak(); } #define VERIFY(action) DCHECK_NT(action) #define VERIFY_SUCCESS(action) DCHECK_NT(NT_SUCCESS(action)) #else |