Linux: Fix release build compile errors (issue #1316)

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1754 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-07-02 22:51:31 +00:00
parent cb907f3649
commit b3309086d9
2 changed files with 6 additions and 4 deletions

View File

@ -30,8 +30,10 @@ void SimpleHandler::OnTitleChange(CefRefPtr<CefBrowser> browser,
"UTF8_STRING"
};
Atom atoms[2];
int result = XInternAtoms(display, const_cast<char**>(kAtoms), 2, false, atoms);
ASSERT(result);
int result = XInternAtoms(display, const_cast<char**>(kAtoms), 2, false,
atoms);
if (!result)
ASSERT(false);
// Set the window title.
XChangeProperty(display,

View File

@ -1168,7 +1168,7 @@ class MultiQueryManager : public CefMessageRouterBrowserSide::Handler {
EXPECT_TRUE(frame.get());
std::string value;
int index;
int index = 0;
EXPECT_TRUE(SplitIDString(message, &value, &index));
TestQuery& query = test_query_vector_[index];
@ -1231,7 +1231,7 @@ class MultiQueryManager : public CefMessageRouterBrowserSide::Handler {
EXPECT_NE(0, query_id);
std::string value;
int index;
int index = 0;
EXPECT_TRUE(SplitIDString(request, &value, &index));
TestQuery& query = test_query_vector_[index];