From f6864d2ead20da4d40e06fd432d2aeb7c11cb17d Mon Sep 17 00:00:00 2001 From: "ivan.penkov@gmail.com" Date: Wed, 21 Nov 2012 01:38:58 +0000 Subject: Fix unused variable warning in optimized build (fix proveded by Matthew Riley) http://breakpad.appspot.com/499002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1084 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/handler/minidump_descriptor.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/linux') diff --git a/src/client/linux/handler/minidump_descriptor.cc b/src/client/linux/handler/minidump_descriptor.cc index af314a94..07b70a04 100644 --- a/src/client/linux/handler/minidump_descriptor.cc +++ b/src/client/linux/handler/minidump_descriptor.cc @@ -65,8 +65,9 @@ void MinidumpDescriptor::UpdatePath() { GUID guid; char guid_str[kGUIDStringLength + 1]; - bool r = CreateGUID(&guid) && GUIDToString(&guid, guid_str, sizeof(guid_str)); - assert(r); + if (!CreateGUID(&guid) || !GUIDToString(&guid, guid_str, sizeof(guid_str))) { + assert(false); + } path_.clear(); path_ = directory_ + "/" + guid_str + ".dmp"; -- cgit v1.2.1