Bug 1360321 - 5. Fix warnings in widget; r=snorp
* Fix warnings using putenv with string literals. * Fix a pritnf format warning. MozReview-Commit-ID: B53sUjGTg7z
This commit is contained in:
@@ -129,7 +129,7 @@ AndroidBridge::ConstructBridge()
|
||||
* to call dlclose() while we're already inside dlclose().
|
||||
* Conveniently, NSS has an env var that can prevent it from unloading.
|
||||
*/
|
||||
putenv("NSS_DISABLE_UNLOAD=1");
|
||||
putenv(const_cast<char*>("NSS_DISABLE_UNLOAD=1"));
|
||||
|
||||
MOZ_ASSERT(!sBridge);
|
||||
sBridge = new AndroidBridge();
|
||||
|
||||
@@ -1432,8 +1432,8 @@ nsWindow::LogWindow(nsWindow *win, int index, int indent)
|
||||
#if defined(DEBUG) || defined(FORCE_ALOG)
|
||||
char spaces[] = " ";
|
||||
spaces[indent < 20 ? indent : 20] = 0;
|
||||
ALOG("%s [% 2d] 0x%08x [parent 0x%08x] [% 3d,% 3dx% 3d,% 3d] vis %d type %d",
|
||||
spaces, index, (intptr_t)win, (intptr_t)win->mParent,
|
||||
ALOG("%s [% 2d] 0x%p [parent 0x%p] [% 3d,% 3dx% 3d,% 3d] vis %d type %d",
|
||||
spaces, index, win, win->mParent,
|
||||
win->mBounds.x, win->mBounds.y,
|
||||
win->mBounds.width, win->mBounds.height,
|
||||
win->mIsVisible, win->mWindowType);
|
||||
|
||||
Reference in New Issue
Block a user